0
我正在学习如何在express上构建会议Web应用程序。在讲座中,他使用swig,但我更喜欢用玉代替swig,因为我正在尝试使用它。这个swig代码如何在玉器中看起来像?
我想将swig代码转换成玉,我被困在这些代码中。
//In swig,
<div class="col-md-12 column list-group">{% for note in notes %}
<div class="list-group-item">
<div>Note from <em><strong>{{ note.memberName }}</strong></em> on: {{ note.createdOn.toDateString() }}
- for project: <strong>{{ note.project }}</strong>
</div>
<div><strong>Work yesterday:</strong> {{ note.workYesterday }}</div>
<div><strong>Work today:</strong> {{ note.workToday }}</div>
<div><strong>Impediment:</strong> {{ note.impediment }}</div>
</div> {% endfor %}
我猜{% for note in notes %}
会像for note in notes
玉文件。但是,我不能转换其他部分,如{{note.project}}
和其他代码以{{ note.
开头。
任何人都可以帮忙吗? 在此先感谢!
那么,它看起来像'strong note.project'?我认为它会打印'note.project'作为内容。 – jaykodeveloper
如果你想打印你使用它们的变量的值,就像这个'#{note.project}'一样。所以结合'strong'标签,它会是:'strong#{note.project}' –
好吧。我现在要试一试。谢谢你的建议! – jaykodeveloper