Customize csc compiler parameters when using CodeFluent.Model.Common.Templating.Template class?
See the question and my original answer on StackOverflowYou can add a template directive to your template file and use the treatWarningsAsErrors attribute, something like this:
[%@ template treatWarningsAsErrors="false" %]
.... your template code...