Class TemplateLoader


  • public class TemplateLoader
    extends java.lang.Object
    • Constructor Detail

      • TemplateLoader

        public TemplateLoader()
    • Method Detail

      • load

        public static Template load​(VirtualFile file)
        Load a template from a virtual file
        Parameters:
        file - A VirtualFile
        Returns:
        The executable template
      • cleanCompiledCache

        public static void cleanCompiledCache()
        Cleans the cache for all templates
      • load

        public static Template load​(java.lang.String path)
        Load a template
        Parameters:
        path - The path of the template (ex: Application/index.html)
        Returns:
        The executable template
      • getAllTemplate

        public static java.util.List<Template> getAllTemplate()
        List all found templates
        Returns:
        A list of executable templates