3 ms·
> Templating tends to break down because it forces you to treat code and markup as two different and fundamentally incompatible things. Well of course code and
by bad_user 18y ago
> Templating tends to break down because it forces you to treat code and markup as two different and fundamentally incompatible things.
Well of course code and markup are two different things, but incompatible? Not really.
We use HTML templates simply to let the designers play with the templates without our interference. It also makes changes easier to integrate. Otherwise we could use a DSL and transform the syntax tree in valid xhtml (which many people are already doing).
> Rather than poking holes in HTML to insert code, we should simply treat HTML as code.
Actually that means poking holes in your code to insert HTML. And it's worse IMO.
While I like some of the articles Jeff has published on his blog, but I've long since deleted the blog's feed from my list because the signal to noise ration is really awful.