请问 这行 ejs 代码如何转换为 jada ?
<meta name="keywords" content="{% for tag in page.tags %}{{ tag.name }},{% endfor %}" />
1
DualWield 2017-05-02 11:33:02 +08:00
```
- var keywords = page.tags.join(','); meta(name="keywords", content=keywords) ``` |
2
DualWield 2017-05-02 11:39:09 +08:00
Tag attributes look similar to html (with optional comma), but their values are just regular JavaScript.
meta(name="keywords", content=page.tags.join(',')) |