i-template
A nodejs template engine with full functions.
Installation
$ npm install i-template
var template = ;template;
Features
- EJS grammar like
- Control flow with
<% %>
- Output with
<%= %>
- Literal output with
<%$ $%>
- Complies with the Express view system
- Master page support
- Sections support
- Includes support
- Cache of template compiled functions
- Cache of common sections
- Custom delimiters (e.g., use '' instead of '<% %>')
Quick Start
The quickest way to get started with i-template
Sample data define
var person = name: 'Robbin';
Value output with sample data
<%=name%>
Robbin
Raw output with sample data(output without parse)
<%$=user.name$%>
=user.name
Integrate with Express.JS
app;app;
Master page
## Section section placeholder```html <%*logo%>
section define
<%# logo: #%>
output
## Include
## Cache