colon

1.3.1 • Public • Published

colon

colon:

Minimal, concise and blazing fast template engine.

Server side render is coming.

Travis-ci NPM Version NPM Downloads size MIT License

Usage

See the website.

Why colon

  • siwg, art-template, doT ...
<h1>{{ title }}</h1>
<ul>
{% for author in authors %}
    <li{% if loop.first %} class="first"{% endif %}>{{ author }}</li>
{% endfor %}
</ul>
  • colon
<h1>{{ title }}</h1>
<ul>
    <li :each="(author, index) in authors" :class="[index == 0 ? 'first' : '']">{{ author }}</li>
</ul>

colon has a more concise template syntax.

Thanks

  • syntax inspired by Vue

License

Licensed under the MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i colon

Weekly Downloads

1

Version

1.3.1

License

MIT

Last publish

Collaborators

  • justclear