Hi there-
 
 I'm trying to figure out the cleanest way to add a post-render debug
mode to velocity.
 
 What I need to have happen, is that every time a template is output, I
need to insert some HTML at the top of the file if some param in the
request enables debug mode.  
 
This includes whenever something is brought in via #parse or #include.
I think this could happen with Events, but I wasn't completely clear on
how.
 
 I'm not using VVS in this app, just the 1.4 engine.
 
 For example:
 
mergeTemplate(template1.msg)
 
template1 looks like this:
 
<template 1 contents>
#parse("template2.msg")
 
 
Desired HTML:
 
<!--DEBUG: This is template1.msg -->
<template1 contents>
<!--DEBUG: This is template2.msg -->
 
 
 Short of adding a macro to the top of every template, is there a way to
have Velocity inject this for me?  Is there a var for the current
template name?
 
Thanks!
 
Tim


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

Reply via email to