@jdists/ejs
v0.0.5
Published
ejs as jdists processor
Downloads
7
Readme
@jdists/ejs
ejs as jdists processor
Example
<!--data>
kids:
- name: Jimmy
age: '12'
- name: Sally
age: '4'
</data-->
<!--jdists encoding="ejs" data="?data"-->
<ul>
<% kids.forEach((item) => { %>
<li><%= item.name %> - <%= item.age %></li>
<% }) %>
</ul>
<!--/jdists-->
<!--ejs data="?data"-->
<ul>
<% kids.forEach((item) => { %>
<li><%= item.name %> - <%= item.age %></li>
<% }) %>
</ul>
<!--/ejs-->
License
MIT © zswang