E.M.
E.M.

Reputation: 4547

Does this exist: HTML Template Renderer Written in JavaScript?

What of instead of the standard Django template rendering model which is server side, there were a library that allowed something that looked like a Django template to be rendered with JavaScript in the client's browser? The variables could be filled in by getting a JSON blob from the server and rendering the template would be done entirely on the client side.

Does a library like this already exist?

As I understand it, GWT sort of does this, but behind the scenes and with a ton of programmer overhead.

Upvotes: 1

Views: 249

Answers (3)

Thilo
Thilo

Reputation: 262834

Google Closure has a template library, there is TrimPath, and there is a long list of answers over here.

Upvotes: 1

mpapis
mpapis

Reputation: 53178

you probably think of mustache, but you can also check pure templates

Upvotes: 0

Nick Craver
Nick Craver

Reputation: 630607

I think you may be thinking of the recently announced jQuery template plugins. There are of course other solutions out there, this has gotten the most press lately, with a similar syntax to what you describe.

Upvotes: 2

Related Questions