I have yet to understand how templating engines work, and what advantages they provide, but knowing this comes from twitter piques my interest for the future.
I have yet to understand how templating engines work, and what advantages they provide, but knowing this comes from twitter piques my interest for the future.
It's a beautiful website, and I was curious what their HTML looked like. If you look at the source for the page, all you see is the mustache template that they then populate with the information for all of the podcasts that they've done. You then can start to see the power that templating gives you. Serve up a template in your html, request some JSON to populate it with on page load and have it replicated.
Makes your initial page very cacheable and clean. Much better than assembling html by hand with "foo" + "bar" or .append semantics.
They still have to do the work to construct the JSON, no?
PS. Not trying to be inflammatory, i'm just trying to understand this better but struggling to get my head around it. I just watched a templating video by the YUI team for Node.js and am still none the wiser. :(
Making an http request is then equivalent to making a sql query.
Yeah very "clean" from a search engine perspective: http://www.google.com/search?q=site:nodeup.com
http://code.google.com/web/ajaxcrawling/docs/getting-started...