Skip to content

Comment on Nodejitsu unveils: Flatiron web framework for node.js

Comments

Nice, lightweight framework, but the template system (Plates) seems weak. It only binds to DOM elements. This means two things: a) You always have to use HTML for all of your templates; b) You have to create a new DOM element for each variable. Example <div id="greet">Hello <div id="name">Batman</div></div> instead of <div id="greet">Hello <%= name %></div>

that the entire point of the templates component.

`<div id="greet">Hello <%= name %></div>` is a biproduct of many years of webservers not being able to parse DOM structures. DSLs come and go. they make markup non-portable. Moving away from DSLs is a step toward a more portable stack.

i'd recommend opening an issue over here https://github.com/flatiron/plates/issues so that the authors can respond to you more efficiently

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.