Skip to content

colonjs/colon

Repository files navigation

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

Releases

No releases published

Packages

No packages published