Class TemplateManager


  • public final class TemplateManager
    extends 
    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Constructor Detail

      • TemplateManager

        public TemplateManager​(IEngineConfiguration configuration)

        This constructor should only be called directly for testing purposes.

        Parameters:
        configuration - the engine configuration
    • Method Detail

      • clearCaches

        public void clearCaches()

        Clears the template cache.

      • clearCachesFor

        public void clearCachesFor​( template)

        Clears any existing entries for template of the specified name at the template cache.

        Parameters:
        template - the name of the template whose entries have to be cleared.
      • parseAndProcess

        public void parseAndProcess​(TemplateSpec templateSpec,
                                    IContext context,
                                     writer)