Closed sackIndian closed 10 years ago
Hi, could any one clarify the merits and demerits of following two hogan notations?
var myTemplate = Hogan.compile('
AND
var myTemplate = new Hogan.Template(function(c,p,i){var =this;.b(i=i||"");.b("<div class=\"myclass\">Loading..
(I get this after compiling above template using hulk)
So my question is, which one is best representation and why?
Of course the first, please, read Hogan.js page for such questions. https://github.com/twitter/hogan.js
Hi, could any one clarify the merits and demerits of following two hogan notations?
var myTemplate = Hogan.compile('
AND
var myTemplate = new Hogan.Template(function(c,p,i){var =this;.b(i=i||"");.b("<div class=\"myclass\">Loading..
(I get this after compiling above template using hulk)
So my question is, which one is best representation and why?