Vikram’s Link & Photo Blog

Icon

Because he loves to shoot first…

JavaScript – HTML Template Engine: Pure | Just Talk About Web

JavaScript – HTML Template Engine: Pure | Just Talk About Web

“Pure” is not the first attempt to create a Javascript/HTML template engine, you can find some other solutions on the net which are in independent projects or as part of an Ajax framework. However, Pure looks like the most comprehensive, systematic and flexible way out.

Basically, to render data, you need a piece of HTML as template, a context which contains data to render, a directive to tell how to render and of course a target element. Please go through 4 examples on Pure’s website to see how to create simple to more complicated templates. I also got my hand dirty to create a slightly more advanced example that renders some recommended reading books when user selects a programming language from dropdown control.

[From: JavaScript - HTML Template Engine: Pure | Just Talk About Web]

Category: Cool Software, web 2.0

Tagged:

Leave a Reply

Photo Stream

Uncle and Li'l TerrorprofilepicIMG_4902IMG_4894IMG_4705IMG_4638

Translate

 

Now Reading

Planned books:

Current books:

  • Summerland

    Summerland by Michael Chabon

  • Wikinomics: How Mass Collaboration Changes Everything

    Wikinomics: How Mass Collaboration Changes Everything by Don Tapscott

  • The Wisdom of Crowds

    The Wisdom of Crowds by James Surowiecki

Recent books:

View full Library