I know apache velocity is available for Java and .NET. Is there also a port to JavaScript? My aim is to translate VTL templates inside the browser without a roundtrip to the web server.
Asked
Active
Viewed 302 times
0
-
What's the point? There are already hundreds of templating languages for JS as well as NodeJS. – elclanrs Jan 09 '13 at 22:13
-
@elclanrs: Maybe he wants to reuse existing VTL documents. – Zeta Jan 09 '13 at 22:14
-
Right, I guess that's the only reason to want this as far as I can tell. I haven't seen VTL for JS but I could be wrong... – elclanrs Jan 09 '13 at 22:15
-
The reason is...I don't want to learn another templating language^^ Just kidding... No I have used velocity since years now and I think there is nothing better. – Olaf Japp Jan 09 '13 at 22:28
-
My next question should be. Is there a good templating engine like velocity which is also supported by [code mirror](http://codemirror.net) and has got a JavaScript implementation? – Olaf Japp Jan 09 '13 at 22:36
1 Answers
0
You might want to try jsVelocity. It doesn't look like it supports all Velocity features, but it's a start.

Matt
- 3,617
- 2
- 27
- 39