RazorTemplate sucks with 3rd party libraries...
This might help, maybe