BorisMoore / jsrender

A lightweight, powerful and highly extensible templating engine. In the browser or on Node.js, with or without jQuery.
http://www.jsviews.com
MIT License
2.67k stars 339 forks source link

JsRender for Node.jS - Server side nesting templates #296

Closed SeminAl closed 8 years ago

SeminAl commented 8 years ago

I'm trying to create two jsrender template files: layout.html and contactus.html. So when user request contactus.html (which is partial view) I would like to wrap it inside layout.html...

Is this possible to accomplish with {{include tmpl=.../}} or I need to use some hacks...

This is like the first thing everybody needs to use when using JsRender on server side, and there is no any documentation about it...

BorisMoore commented 8 years ago

Did you find the documentation?

Also

and many others on the https://github.com/BorisMoore/jsrender-node-starter site.