Sanitizing templates during compilation (#12)