Interface TemplateLoader

    • Method Detail

      • sourceAt

        TemplateSource sourceAt​(String location)
                         throws IOException
        Get a template source from location.
        Parameters:
        location - The location of the template source. Required.
        Returns:
        A new template source.
        Throws:
        IOException - If the template's source can't be resolved.
      • resolve

        String resolve​(String location)
        Resolve a relative location to an absolute location.
        Parameters:
        location - The candidate location.
        Returns:
        Resolve the uri to an absolute location.
      • getPrefix

        String getPrefix()
        Returns:
        The prefix that gets prepended to view names when building a URI.
      • getSuffix

        String getSuffix()
        Returns:
        The suffix that gets appended to view names when building a URI.
      • setPrefix

        void setPrefix​(String prefix)
        Set the prefix that gets prepended to view names when building a URI.
        Parameters:
        prefix - The prefix that gets prepended to view names when building a URI.
      • setSuffix

        void setSuffix​(String suffix)
        Set the suffix that gets appended to view names when building a URI.
        Parameters:
        suffix - The suffix that gets appended to view names when building a URI.