Vikram's Web Archive


Since interestingness isn't a search option…

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


Comments are closed.

Photo Stream





Speaker for the Dead
To Kill a Mockingbird
Leviathan Wakes
Caliban's War
Revelation Space
Ender's Game
On Basilisk Station
Old Man's War
Shards of Honour
The Warrior's Apprentice
The Fall of Hyperion
The Rise of Endymion


Now Reading

Planned books:

Current books:

  • The Wisdom of Crowds

    The Wisdom of Crowds by James Surowiecki

Recent books:


View full Library