You can disable the #parse and #include directives using the InputEventHandler.
WILL On Dec 26, 2007 11:40 AM, Alexander Dubinin <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking for effective template engine for processing templates in > my program. > It should process templates, stored in database, and generate plain > text output stream. > It may be shell scripts, configuration files, XML files, etc. - just a > random plain text, generated from set of templates. > > Currently I ave 2 problems with Velocity: > 1. Due to security reasons (all processing is done in memory at WEB > server with DB, and users are able to modify templates), need to have > a way to disable some directives. At least, the ones which working > with template files - #parse and #include. > 2. For shell script templates, need to distinguish between VTL > comments and shell comments. It's common situation, then multiple "#" > characters are used in shell scripts to identify script sections... > It would be great to allow usage of custom character for directives > (Or, at least, for VTL comments), instead of "#" - for specific > template only. > > Does anybody have ideas, how to solve these problems? > > Thanks in advance, > > -- > Regards, > Alexander Dubinin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Forio Business Simulations Will Glass-Husain [EMAIL PROTECTED] www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
