For one project, we’re using NVelocity template engine and it uses $ sign for variables in the templates. This obviously conflicts with JQuery. When you try to use a JQuery function such as `$(“#foo”).show()`, template engine thinks it is a variable to be swapped with a value. This could be solved via;

1) Using JQuery without the $ syntax.

2) Using template engines mechanisms to print an actual $ character in the output.

or

3) Do as I do, put a space right after the $ character and NVelocity will be fine with it. For instance `$ .(“#foo”).show();`

I figured this third trick a few months ago and it took me a few minutes to find it again this morning. There! I won’t forget it again.