更新时间:2022-06-05 01:48:25
您可以使用模板
helper。
You could use the template
helper.
<script type="text/x-handlebars" data-template-name="posts">
<div class="right"><h2>posts page</h2>
{{template "posts-details"}}
</div>
</script>
<script type="text/x-handlebars" data-template-name="posts-details">
{{#each post in content}}
<article>
<h3><a {{action "doPost" context="post"}} {{bindAttr id="post.id"}}>{{post.title}}</a></h3>
<p>{{post.date}}</p>
</article>
{{/each}}
</script>
查看您的更新小提琴