Make "compile" accessible in templates