Skip to content

jdists/art-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@jdists/art-template

art-template as jdists processor

NPM version Build Status Coverage Status

Example

<!--data>
kids:
  - name: Jimmy
    age: '12'
  - name: Sally
    age: '4'
</data-->

<!--jdists encoding="art-template" data="?data"-->
<ul>
  {{each kids item}}
  <li>{{item.name}} is {{item.age}}</li>
  {{/each}}
</ul>
<!--/jdists-->

<!--art-template data="?data"-->
<ul>
  {{each kids item}}
  <li>{{item.name}} is {{item.age}}</li>
  {{/each}}
</ul>
<!--/art-template-->

License

MIT © zswang