Simplify templating with node.js, jsdom 0.2.0 and weld
blog.nodejitsu.com
Simplify templating with node.js, jsdom 0.2.0 and weld
1–10 of 20 posts
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#2Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#3Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#4The whole point of using templates is to separate your presentation logic from the rest of your application - ideally, you can hand the templates over to a client-side developer/designer and they can re-jiggle everything on their own.
If your templating code works by performing manipulations against a DOM, even minor changes to your page structure require to to completely rewrite both the templates and the code that manipulates them. I'd much rather leave my "view" code alone and just alter the template.
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#5DOM-based templating is a horrible idea, at least for the majority of projects I've ever worked on. The whole point of using templates is to separate your presentation logic from the rest of your application - ideally, you can hand the templates over to a client-side developer/designer and they can re-jiggle everything on their own. If your templating code works by performing manipulations against a DOM, even minor c…
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#6DOM-based templating is a horrible idea, at least for the majority of projects I've ever worked on. The whole point of using templates is to separate your presentation logic from the rest of your application - ideally, you can hand the templates over to a client-side developer/designer and they can re-jiggle everything on their own. If your templating code works by performing manipulations against a DOM, even minor c…
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#7DOM-based templating is a horrible idea, at least for the majority of projects I've ever worked on. The whole point of using templates is to separate your presentation logic from the rest of your application - ideally, you can hand the templates over to a client-side developer/designer and they can re-jiggle everything on their own. If your templating code works by performing manipulations against a DOM, even minor c…
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#8There is an example using express and all kinds of cool business.
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#9There is an example using express and all kinds of cool business.
Re: Simplify templating with node.js, jsdom 0.2.0 and weld
#10DOM-based templating is a horrible idea, at least for the majority of projects I've ever worked on. The whole point of using templates is to separate your presentation logic from the rest of your application - ideally, you can hand the templates over to a client-side developer/designer and they can re-jiggle everything on their own. If your templating code works by performing manipulations against a DOM, even minor c…
How do you rationalize including logic in the markup?
With Django, I often find myself writing view logic to support specific presentation tasks (regrouping items in a manner more complicated than Django's {% regroup %} template tag allows, for example). This used to bother me, but then I decided that pragmatism beats purity if you actually want to ship anything.