Velocity - How to avoid ParseErrorException when using jQuery?

后端 未结 5 379
闹比i
闹比i 2021-02-04 10:23

I\'m trying to add a jQuery post to some JavaScript on a web page. The entire page is built up of several Velocity templates. Everything has been fine until I\'ve tried to add t

5条回答
  •  执念已碎
    2021-02-04 11:00

    You can wrap your javascript with #[[ ... ]]# which tells Velocity to not parse the enclosed block (new in Velocity 1.7)

    #[[ 
    
    ]]#
    

提交回复
热议问题