koa-cheerio-template
Templating for koa using cheerio. Inspired by cheerio-template which I used a lot for my express based projects.
Features
- "no template" style server side templating with jQuery syntax
- optional isomorphic support (see example)
- layout, extend, placeholder, block, include
- unlimited level of hierarchy
- html editor friendly
Installation
npm install koa-cheerio-template
Example
views/index.html
Templating Demo Sample for including component Hello
See the full example!
var path = ;var app = ;var render = ; app; app; app;
see cheerio-readme and htmlparser2 for more information
# License
MIT