# xtemplate

eXtensible Template Engine lib on browser and nodejs.
support async control, inheritance, include, logic expression, custom function and more.

[![xtemplate](https://nodei.co/npm/xtemplate.png)](https://npmjs.org/package/xtemplate)
[![NPM downloads](http://img.shields.io/npm/dm/xtemplate.svg)](https://npmjs.org/package/xtemplate)
[![Build Status](https://secure.travis-ci.org/kissyteam/xtemplate.png?branch=master)](https://travis-ci.org/kissyteam/xtemplate)
[![Coverage Status](https://img.shields.io/coveralls/kissyteam/xtemplate.svg)](https://coveralls.io/r/kissyteam/xtemplate?branch=master)
[![Dependency Status](https://gemnasium.com/kissyteam/xtemplate.png)](https://gemnasium.com/kissyteam/xtemplate)
[![Bower version](https://badge.fury.io/bo/xtemplate.svg)](http://badge.fury.io/bo/xtemplate)
[![node version](https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square)](http://nodejs.org/download/)

[![browser support](https://ci.testling.com/kissyteam/xtemplate.png)](https://ci.testling.com/kissyteam/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](https://github.com/jrburke/requirejs) [modulex](https://github.com/kissyteam/modulex)
[kissy](http://docs.kissyui.com) [kissy gallery](http://gallery.kissyui.com)

guide: 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

## changelog

https://github.com/kissyteam/xtemplate/milestones

## 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.