http icon indicating copy to clipboard operation
http copied to clipboard

Change DSP template language

Open cgay opened this issue 14 years ago • 1 comments

It was a mistake to use a templating language that looks like HTML but isn't. (The thought was that it would make it possible to use standard HTML editing tools but it's not really valid HTML and the similarity with HTML can be confusing.) I would like to use something more like the Django template language with {{ and }} to delimit tags.

This is also about the current template parser being full of bugs and difficult to work with.

Look at Dustin Voss's template-engine library to see if it fits the bill.

cgay avatar Mar 08 '11 12:03 cgay

From IRC:

brucem: Mustache is pretty (very) common these days. brucem: And that's nice because it is also available as a JS library so that you can do templating in the browser. brucem: That makes me sad. I did a game client in 2002 that used a lot of server-driven stuff, including feeding templates + data to the client and doing client side templating. brucem: and if you want inspiration, the Scalate library is actually pretty nice.

cgay avatar Mar 08 '11 16:03 cgay