Class TemplateUtils.Loader

    • Constructor Detail

      • Loader

        public Loader​(com.samskivert.mustache.Mustache.Compiler compiler)
        Parameters:
        compiler - the Mustache.Compiler to use
    • Method Detail

      • loadFrom

        public com.samskivert.mustache.Template loadFrom​(File file)
                                                  throws IOException
        Loads a template from a file.
        Parameters:
        file - the file to load from
        Returns:
        the template
        Throws:
        IOException - if no such file
      • loadFrom

        public com.samskivert.mustache.Template loadFrom​(Reader reader)
        Loads a template from a stream reader.
        Parameters:
        reader - the stream reader
        Returns:
        the template
      • loadFrom

        public com.samskivert.mustache.Template loadFrom​(String name)
        Loads a template from a resource.
        Parameters:
        name - the name of the resource
        Returns:
        the template