Vikram's Web Archive

Icon

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

Tagged:

Comments are closed.

Photo Stream

VikramProfilebwVikram_ProfileVikramProfilePic2_bwDystopia (an excerpt)Working on Haitian Creole MT engineProfile

Translate

 

Now Reading

Planned books:

Current books:

  • The Wisdom of Crowds

    The Wisdom of Crowds by James Surowiecki

Recent books:

None

View full Library