Hi,

Llewellyn's suggestion of a custom ResourceLoader is probably the way
to go.  Alternately, you could write a custom Writer and do
post-Velocity processing.

best,
WILL

On 3/9/07, Llewellyn Falco <[EMAIL PROTECTED]> wrote:
you'll need to write a ResourceLoader

basically modify the ResourceLoader you are using to still check everything
from the actual file, but read from a parsed file.



llewellyn.

----- Original Message -----
From: "yoursoft" <[EMAIL PROTECTED]>
To: <dev@velocity.apache.org>
Sent: Friday, March 09, 2007 5:02 AM
Subject: compress html templates when read from disk


> Dear Developers,
>
> I would like to write a "plugin" to velocity.
> This "plugin" will compress html templates when reading from disk (remove
> white-spaces,  comments etc.), not when Velocity is write to output,
> because my cache "modified check time" is one hour. :-)
>
> Can you suggest any entry point where I made it? (In ContentResource.java
> at setData(sw.toString())???)
>
> Best Regards,
>    Ferenc Lutischan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
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]

Reply via email to