Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created June 12, 2012 23:44
Show Gist options
  • Save ovaillancourt/2920838 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2920838 to your computer and use it in GitHub Desktop.
var hogan = require('hogan.js');
var t = hogan.compile('{{<super}}{{$title}}sub template title{{/title}}{{/super}}');
var s = hogan.compile('...{{$title}}Default title{{/title}}...');
var o = t.render({}, {"super": s});
console.log(o);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment