Meteor 流星模板插入点
Meteor在Meteor 流星模板插入点,meteor,Meteor,Meteor在下插入模板的内容。有没有办法让它插入其他地方?例如,在下确保: index.html: 你的网站标题 这里还有其他东西 {{>内容} content.html: 插入模板材料 “somwhere else”=在中?@PeppeL-G我已经澄清了我的问题,谢谢。我看不出问题所在。为什么你不能像他们在排行榜示例中那样做呢? <body> <h1>Your Site Title</h1> <p>Other stuff here
下插入模板的内容。有没有办法让它插入其他地方?例如,在
下确保:
index.html:
你的网站标题
这里还有其他东西
{{>内容}
content.html:
插入模板材料
“somwhere else”=在
中?@PeppeL-G我已经澄清了我的问题,谢谢。我看不出问题所在。为什么你不能像他们在排行榜示例中那样做呢?
<body>
<h1>Your Site Title</h1>
<p>Other stuff here</p>
<div class='content'>
{{> content}}
</div>
</body>
<template name="content">
Inserted template stuff
</template>