jquery.expand is an extremely powerful structural templating library. Looking back on when I first started using it, I realize I was only taking advantage of about 20% of its potential. Here are some examples that should help anyone new to jquery.expand get a head start.
Topher – Client side templates can be very useful when the front end is pulling/pushing data to/from a JSON API. By rendering the HTML on the client side you can better decouple the user interface from the server side data processing. And as you mentioned, it is the only way to render HTML if your web application is going to run offline with no access to the web server.
In addition, client side templates are a good way to distribute the processing requirements of web pages to the users’ machines, as opposed to having to do all of the work on the web servers. I attended a presentation at RubyConf 2010 where a guy from Twitter talked about this being one of the big motivations for them transitioning to a single-page app.
[…] WorkWith the basics out of the way, you can easily begin incorporating dynamic page building with templating engines. If nothing else, you can use jQuery to do some modifications to the content. Once you get the hang […]
Comments are closed.
Tell Us About Your Project
We’d love to talk with you about your next great software project. Fill out this form and we’ll get back to you within two business days.
What’s the value in using a client side templating system? Offline use with local database storage?
Topher – Client side templates can be very useful when the front end is pulling/pushing data to/from a JSON API. By rendering the HTML on the client side you can better decouple the user interface from the server side data processing. And as you mentioned, it is the only way to render HTML if your web application is going to run offline with no access to the web server.
In addition, client side templates are a good way to distribute the processing requirements of web pages to the users’ machines, as opposed to having to do all of the work on the web servers. I attended a presentation at RubyConf 2010 where a guy from Twitter talked about this being one of the big motivations for them transitioning to a single-page app.
[…] WorkWith the basics out of the way, you can easily begin incorporating dynamic page building with templating engines. If nothing else, you can use jQuery to do some modifications to the content. Once you get the hang […]