Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Velocity (VM) template: how to disable for a block of jquery

I have Apache Velocity. I have some jQuery code. I think VM doesn't like when I do things like $img.css("float","left"). How can I completely disable VM parsing within a block of HTML/Javascript ?

Thanks

like image 700
Nathan H Avatar asked Nov 20 '25 09:11

Nathan H


1 Answers

Velocity 1.7-beta1 is now out, and it ships the #[[don't parse me!]]# directive, so you don't have to escape a bunch of code in your .vm files.

Works for me like a charm.

like image 63
Brian Clozel Avatar answered Nov 21 '25 23:11

Brian Clozel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!