Interface HasAsciidoctorjTemplates

  • All Superinterfaces:
    org.asciidoctor.gradle.model5.core.formatters.HasTemplates
    All Known Subinterfaces:
    AsciidoctorjHtml5, AsciidoctorjRevealjs

    public interface HasAsciidoctorjTemplates
    extends org.asciidoctor.gradle.model5.core.formatters.HasTemplates
    asciidoctorj output formatters that support templates implement this interface.
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setForceEngine​(java.lang.String engineName)
      Forces the use of a single template engine,
      void useEngine​(java.lang.String engineName)
      Places a supported engine on the GEM classpath.
      void useEngine​(java.lang.String engineName, java.lang.Object version)
      Places an engine on the GEM classpath.
      • Methods inherited from interface org.asciidoctor.gradle.model5.core.formatters.HasTemplates

        getConversionTemplate, templateDirs, templateDirs
    • Method Detail

      • setForceEngine

        void setForceEngine​(java.lang.String engineName)
        Forces the use of a single template engine,
        Parameters:
        engineName - Name of engine.
      • useEngine

        void useEngine​(java.lang.String engineName)
        Places a supported engine on the GEM classpath.

        The engine needs to be one of erb, slim or haml.

        Parameters:
        engineName - Engine name.
      • useEngine

        void useEngine​(java.lang.String engineName,
                       java.lang.Object version)
        Places an engine on the GEM classpath.

        This can be used to override the default version of slim or haml

        Parameters:
        engineName - Engine name. It must be an engine that is supported by tilt.
        version - GEM version. Anything convertible to a string.