Look at the sources, there is no javadoc on doing this. As Shinobu
pointed out, the template compiler was never implemented, since
the parser is quite fast and template caching does the rest.

Your itch is a special case, which might be of interest to some
others. In any case, if you really need it, probably it is the best
to do it yourself as noted. Be warned, it won't be an easy task.

If you find trouble with searializing the velocity classes, you
might try to fix it and send patches or seek advice in the
velocity-dev list.

Carfield Yim wrote:
Christoph Reck wrote:

Hi Yim,
[snip]

You seem to want to obfuscate the template... maybe you should check if the AST-node representation of templates can be serialized and use your own resource loader taking the serialized version instead of the text template...


Yeah... this should be what I looking for, would you recommend pointer of velecity javadoc of doing that?

http://svn.apache.org/viewcvs.cgi/jakarta/velocity/trunk/src/java/org/apache/velocity/runtime/parser/node/SimpleNode.java?view=auto

But ugh! it does not implement Searializable... Well that is the
first obstacle to overcome or workaround...


Cheers Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to