meteorJS Jade模板不能按预期工作
我试过这个包https://github.com/matteodem/meteor-easy-search/使用这个示例代码很容易search
<template name="searchBox"> {{> esInput index="players" placeholder="Search..." }} <ul> {{#esEach index="players"}} <li>Name of the player: {{name}}</li> {{/esEach}} </ul> </template>
并将其转换为玉石
template(name="searchBox") +esInput index="players" placeholder="Search..." ul esEach index="players" li Name of the player: {{name}}
如果我使用html格式的search工作,但是当我使用玉石格式没有错误,但search将不会显示。 我把html转换成了jade吗? 任何想法为什么玉不起作用?
esEach
都应该是+esEach
。 现在至less有30个字符。