This post is an introduction to learn about client-side templates and It’s not always good to reinvent the wheel, and that applies to this article too.
I have found a very good article that explain what I wanted to write here, is called From The Server To The ClientClient-Side Templating. I truly recommend to read this article in detail if you want learn how to deliver dynamic content via client-side and maximize code reusability and maintainability using JavaScript/jQuery, HTML, CSS, Ajax, JSON and of course, client-side templates.
Also, my teammate, Osvaldo Flores, has wrote about the same topic, he focused on Trimpath that is still our current JavaScript Templating engine here on Base22, but as all has to evolve, we are currently working on a new version of our assets using dust as our new engine, but that is another topic.
If you want to see a live demo of this client-side development technique, please visit our website Base22.com, there we use our xWidgets assets to show dynamic content that live in IBM WCM v8.
Future readings:
- Using Trimpath – JavaScript Templates
- Client-Side Templating
- Leaving JSPs in the dust: moving LinkedIn to dust.js client-side templates
Hope you find this information useful!!