Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 534 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 534 Bytes

kml

template parsers built on top EJS engine.

<li ::each="item in items"> <?= item ?> </li>

will be transform into:

<!-- EJS -->
<? for(var __i = 0; __i < items.length; __i++){ ?>
    <li ::each="item in items"> <?= items[__i] ?> </li>
<? } ?>

<button ::on-click="sayHello()">Go!</button>

will be transform into:

<!-- EJS -->
<button kfdhua9d::on-click="sayHello()">Go!</button>
<?
$$on("click", "kfdhua9d", function(){
    sayHello();
})
?>