项目作者: colonjs

项目描述 :
Minimal, concise and blazing fast template engine.
高级语言: JavaScript
项目地址: git://github.com/colonjs/colon.git
创建时间: 2017-05-13T09:45:15Z
项目社区:https://github.com/colonjs/colon

开源协议:MIT License

下载



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
  1. <h1>{{ title }}</h1>
  2. <ul>
  3. {% for author in authors %}
  4. <li{% if loop.first %} class="first"{% endif %}>{{ author }}</li>
  5. {% endfor %}
  6. </ul>
  • colon
  1. <h1>{{ title }}</h1>
  2. <ul>
  3. <li :each="(author, index) in authors" :class="[index == 0 ? 'first' : '']">{{ author }}</li>
  4. </ul>

colon has a more concise template syntax.

Thanks

  • syntax inspired by Vue

License

Licensed under the MIT License