public static String mergeFromPath ( String templatePath , Map < String , ? > values ) { return mergeFromTemplate ( readResource ( templatePath ) , values ) ; }
This method is used in one - off operations where it is OK to load a template every time .