Wednesday, July 23, 2008

NVelocity Parse

A little thing that drove me completely insane

when using parse (appache ref) the path to the view includes the folder that you are in

say you are in the folder .../views/Blog
editing a view called one.vm
if you want to parse something in the same folder as one.vm you have to use

#parse("Blog/two.vm")
and if you happen to use a / before blog you ll get a nice exception that has a very unclear message

Just to note

No comments: