/xtemplate

eXtensible Template Engine lib for node and the browser

Primary LanguageJavaScript

xtemplate

High Speed, eXtensible Template Engine lib on browser and nodejs. support async control, inheritance, include, logic expression, custom function and more.

NPM version Bower version build status Test coverage gemnasium deps node version npm download

browser support

install

xtemplate

api

https://github.com/kissyteam/xtemplate/blob/master/docs/api.md

syntax

https://github.com/kissyteam/xtemplate/blob/master/docs/syntax.md

use on browser

support requirejs modulex kissy kissy gallery

中文教程: https://github.com/kissyteam/xtemplate/blob/master/docs/use-on-browser.md

demo: https://github.com/yiminghe/xtemplate-on-browser

use on node

https://github.com/kissyteam/xtpl

中文介绍

https://github.com/kissyteam/xtemplate/blob/master/docs/introduce.md

on dailyjs

http://dailyjs.com/2014/09/24/node-roundup/

changelog

https://github.com/kissyteam/xtemplate/blob/master/CHANGELOG.md

contribute

fork and clone

prepare environment

npm install bower -g
npm install
bower install
node server

then open http://localhost:8002/tests/runner.html

open issue

modify code at lib

commit and pull request

License

xtemplate is released under the MIT license.