Hacker Newsnew | past | comments | ask | show | jobs | submit | weesilmania's commentslogin

I think the inspiration came from quora.com.


I am a potential fool but would like to find out (a lot) more. I work centrally and live slightly north. Drop me a message and we'll chat.


Hi there

Cool let's chat :) email me on alain.richardt85@gmail.com and I'll send you much more info

Alain


If you're in the UK try this guy: http://stores.ebay.co.uk/electronic-king-inc

20% or more depending on what you buy. I've bought through him, just make sure he's shipping from UK so you don't pay import duties.


Is it refurbished stuff?


I'm not sure if you can buy refurbished, but I've only ever bought brand new stuff - I think he imports en masse from other countries. He's quite good at replying to questions too if you have detailed questions. The savings are really good eh?


It's called "Banner Blindness". We probably all have it.


But why?


There often can be advantages with client-side Javascript templates when building gadgets, such as those in OpenSocial containers.

Not sure I value this templating system over others yet.


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.


Templating systems are pretty useful and used in quite a few frameworks. Alot of the controls in ASP.NET basically work as templates where you define the markup and bind a list of data to the control the markup (template) is repeated for each piece of data. This is relatively easy on the server side, but on the client side it's a bit more difficult.

If you wanted to create a realtime twitter client, for example, done all on the client you'd need to fetch a collection of new tweets periodically and render them in JavaScript. Without a templating framework, you'd have to loop through the new tweets and construct the presentation using something like "innerHTML" or "document.createElement()". A templating system allows you to construct the layout of a single tweet in standard HTML, mix in a bit of the template's JS syntax, and then essentially "bind" the list of new tweets to the template and the markup is repeated for each new tweet.

Given that example, there are plenty of uses that follow the idea of replicating content over and over using the same template: Email clients, chat clients, news readers, blogs, photo galleries, classified listings, etc, etc.


Ah, very useful :) Thanks.


I think the value is in having your templates already loaded client side, then being able to render them as your data comes back from the server in JSON or XML.. It lets you keep the server side controller very simple & generic, possibly just enough to handle authNZ and a model query.


oh I see.. (I think) It's about building your DOM on page load (or whenever) and have that ready for some type of data "injection"?


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).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: