private TemplateImpl load ( String path , ParserRuleContext errCtx ) { path = Paths . resolvePath ( currentEnvironment . path , path ) ; try { return ( TemplateImpl ) engine . load ( path ) ; } catch ( IOException | ParseException e ) { throw new ExecutionException ( "error importing " + path , e , getLocation ( errCtx ) ) ; } }
Loads a template from the supplied template loader .