Last active
October 10, 2015 16:38
Revisions
-
grejdi renamed this gist
Feb 11, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ // load 'hogan' library load('js/lib/hogan/web/builds/2.0.0/hogan-2.0.0.js'); -
grejdi created this gist
Sep 14, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ // load 'hogan' library load('js/lib/hogan/web/builds/2.0.0/hogan-2.0.0.js'); // initialize templates object print('var templates = {'); // read mustache template content from file path template = readFile('templates/index.mustache'); // print compiled function from Hogan print('"index" : new Hogan.Template(' + Hogan.compile(template, {asString : true}) + ')'); // close object print('};');