1.0.9 • Published 3 months ago

mitem v1.0.9

Weekly downloads
8
License
MIT
Repository
-
Last release
3 months ago

miTem

CircleCI License: MIT npm

miTem.js is small and fast template engine with twig like syntax

Installation

via yarn:

$ yarn add mitem

via npm:

$ npm install mitem

via bower:

$ bower install mitem

How to use

Examples can be found here

node:

const miTem = require('./mitem');
let template = miTem.compile("{% for item in arr %}{{item.foo}}{% endfor %}");
template({arr: [{foo:"test "}, {foo:"test2"}]})

output:

test test2

web:

<script src="mitem.js"></script>
var template = miTem.compile("{% for item in arr %}{{item.foo}}{% endfor %}");
template({arr: [{foo:"test "}, {foo:"test2"}]})
1.0.9

3 months ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.1.0

5 years ago