/** * Replaces all instances of the following * <p> * %%APP%% - the angular module application name %%DIRECTIVES%% - the angular directives %%MODULES%% the modules generates * %%CONTROLLER%% the modules generates * * @param templateName * The template name * @param template * the template to build * * @return the name */ public static StringBuilder compileTemplate(String templateName, String template) { return processTemplate(templateName, template); }
/** * Replaces all instances of the following * <p> * %%APP%% - the angular module application name %%DIRECTIVES%% - the angular directives %%MODULES%% the modules generates * %%CONTROLLER%% the modules generates * * @param templateName * The template name * @param template * the template to build * * @return the name */ public static StringBuilder compileTemplate(String templateName, String template) { return processTemplate(templateName, template); }
/** * Replaces all instances of the following * <p> * %%APP%% - the angular module application name %%DIRECTIVES%% - the angular directives %%MODULES%% the modules generates * %%CONTROLLER%% the modules generates * * @param templateName * The template name * @param template * the template to build * * @return the name */ public static StringBuilder compileTemplate(String templateName, String template) { return processTemplate(templateName, template); }
/** * Replaces all instances of the following * <p> * %%APP%% - the angular module application name %%DIRECTIVES%% - the angular directives %%MODULES%% the modules generates * %%CONTROLLER%% the modules generates * * @param referenceClass * The class to find where the file is at * @param templateName * the template to use * * @return the name */ public static StringBuilder compileTemplate(Class referenceClass, String templateName) { String template = getFileTemplate(referenceClass, templateName).toString(); return processTemplate(templateName, template); }
/** * Replaces all instances of the following * <p> * %%APP%% - the angular module application name %%DIRECTIVES%% - the angular directives %%MODULES%% the modules generates * %%CONTROLLER%% the modules generates * * @param referenceClass * The class to find where the file is at * @param templateName * the template to use * * @return the name */ public static StringBuilder compileTemplate(Class referenceClass, String templateName) { String template = getFileTemplate(referenceClass, templateName).toString(); return processTemplate(templateName, template); }
/** * Replaces all instances of the following * <p> * %%APP%% - the angular module application name %%DIRECTIVES%% - the angular directives %%MODULES%% the modules generates * %%CONTROLLER%% the modules generates * * @param referenceClass * The class to find where the file is at * @param templateName * the template to use * * @return the name */ public static StringBuilder compileTemplate(Class referenceClass, String templateName) { String template = getFileTemplate(referenceClass, templateName).toString(); return processTemplate(templateName, template); }
/** * Get the map of all the template scripts * * @param template * * @return A final HashMap */ public static StringBuilder renderTemplateScripts(String template) { if (TemplateScripts.containsKey(template) && TemplateScripts.get(template) != null) { return processTemplate(template, getTemplateScripts().get(template) .toString()); } return new StringBuilder(); }
/** * Get the map of all the template scripts * * @param template * * @return A final HashMap */ public static StringBuilder renderTemplateScripts(String template) { if (TemplateScripts.containsKey(template) && TemplateScripts.get(template) != null) { return processTemplate(template, getTemplateScripts().get(template) .toString()); } return new StringBuilder(); }
/** * Get the map of all the template scripts * * @param template * * @return A final HashMap */ public static StringBuilder renderTemplateScripts(String template) { if (TemplateScripts.containsKey(template) && TemplateScripts.get(template) != null) { return processTemplate(template, getTemplateScripts().get(template) .toString()); } return new StringBuilder(); }