Re:Composer.js: a framework for building complex single-page...
by lurchpop on Sunday January 25, 2015 @05:49PM
(#8944568)
I really don't like the long concatenated HTML strings embedded in the scripting code. Is there a way to do templating here?
[ Parent
| on HN ]
Re:Composer.js: a framework for building complex single-page...
by orthecreedence on Sunday January 25, 2015 @08:33PM
(#8945127)
Of course, you can use any templating option you like. Raw HTML was used in the examples because we don't want people getting confused by thinking that Composer makes this choice for you.
You can use Handlebars, Mustache, underscore, etc etc. Just take the output of your templating engine and pass it into `Controller.html()`.
Re:Composer.js: a framework for building complex single-page...
by rubbingalcohol on Sunday January 25, 2015 @08:11PM
(#8945049)
I use composer.js + underscore for templating all the time.