[Helma-user] Javascript Template Enginee
Chris Zumbrunn
chris at mocha.ch
Sat Sep 23 20:49:36 CEST 2006
On Sep 19, 2006, at 19:16 , Julian Tree wrote:
> And what is the status of integrating Javascript Template Engine to
> helma? A while a go I read on the mailing list that Jurge's template
> engine is being consider as the standard template engine for helma. It
> would be great if we can replace
>
> # HopObject.renderSkin()
> # HopObject.renderSkinAsString()
> renderSkin()
>
> with what the the javascript template engine does.
>
> Will this happen in Helma 1.6?
Something that is based on it is intended to become the default
template engine in Helma 2. But nothing stops you from using it in
Helma 1.6 - or even Helma 1.5. You can just do something like...
HopObject.prototype.renderSkin = renderTemplate
HopObject.prototype.renderSkinAsString() = renderTemplateAsString
global.renderSkin = renderTemplate
...and set these methods to what you want them to do.
Chris
More information about the Helma-user
mailing list