How to tell velocity not to render

I have a snippet template that I’m trying to insert some javascript and aspx script onto. Unfortunately everytime I try to assemble the page velocity is trying to rendering the javascript and aspx and of course throwing errors. Does anyone know how I can escape the velocity engine?

Shane

The # can be escaped with a \ e.g #

The $ does not need escaping unless it is a valid reference e.g.

$blah

outputs as

$blah

but

#set($blah = ‘hello’)
$blah

outputs as

hello

See http://velocity.apache.org/engine/devel/user-guide.html#escapingvalidvtlreferences

This is all you need to escape javascript string in velocity:
http://velocity.apache.org/tools/devel/generic/EscapeTool.html

You may also try to #include (“filename.aspx”):
http://velocity.apache.org/engine/devel/user-guide.html#Include