Live data from Hacker News

JQuery Blueprint - a js templating framework in just 30 lines of code.

github.com

11–16 of 16 posts

Re: JQuery Blueprint - a js templating framework in just 30 lines of code.

#11
post #5

care to elaborate how it compares to other js templating frameworks? (ie. features, speed)

As far as features, there aren't many. I'd looked at all the other js templaters and they all seemed to do too much, IMO. I just wanted one that would take an html template, let me give it a data object, and have it render it into an element on the page.

Speed wise, I haven't benchmarked it, but it uses regex (admittedly not the best way) and jquery.append() to do the heavy-lifting, that combined with the fact it's doing very little, it should be very fast.

I'm working on making it parse the template first that way I can get rid of the regex, or at least minimize it's usage.

Re: JQuery Blueprint - a js templating framework in just 30 lines of code.

#13
post #12

Have you seen http://beebole.com/pure/ before?

I hadn't... but it still looks like it does far more than I want. But it does look like it might be one step up in functionality, for those who want just a little more control over the rendering process.

Re: JQuery Blueprint - a js templating framework in just 30 lines of code.

#15

But why?

Sorry I don't mean to be cheeky, I seriously want to know what the application of this might be, can't see a real-world example.

For a real world exemple, check out our app http://beebole-apps.com/?demo, the rendering is entirely built client side with a Javascript templating engine (PURE).

Re: JQuery Blueprint - a js templating framework in just 30 lines of code.

#16
post #12

Have you seen http://beebole.com/pure/ before?

I hadn't... but it still looks like it does far more than I want. But it does look like it might be one step up in functionality, for those who want just a little more control over the rendering process.

PURE had ~50 lines when starting, but then the real life came with its clunky browsers, various libs and functionality needs.
Post reply on HN