First attempt to implement the block system from django templates on top of the npm module ejs.

This commit is contained in:
Egil Moeller 2012-03-07 17:36:11 +01:00
parent 7b518eeb2d
commit 92dc3e59d6
3 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<% var e = require("./eejs.js"); e.init(buf); %>
<% e.begin_define_block("foo"); %>
YY
<% e.end_define_block(); %>
<% e.require("./bar.ejs"); %>