Lite
A cross platform template engine base on xml/html and javascript expression.
Install:
npm install lite
Innovative Features
- Automatic BigPiple+BigRender Support.
- Automatic encoding based on HTML semantic context.
- Available contents transmitted immediately and unavailable content auto wait.
Example:
Simple NodeJS Example
${title}This is ${user.name}.I am ${user.age} years old this year
var LiteEngine = LiteEngine;var engine = './';;
NodeJS Example(Automatic Data Loading Optimization)
var LiteEngine = LiteEngine;var engine = './';;
- [LiteEngine]:
- render(url,model,request,response)
NodeJS Example(Automatic Bigpiple && BigRender Optimization)
... <!-- module1 source will build as a inner generator function, and flush as __widget_arrived callback(...) when data prepared --> loading module1... loading module2...loading module3...
Java spring mvc
/** * Created by jindw on 17/2/25. */@Configuration@EnableWebMvc
org.xidea lite 3.1.15
Other Server Side Impl