com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface ITemplateEngine



  • public interface ITemplateEngine

    Represents a template engine that transforms template and data pair into resulting output (usually HTML).

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void addTemplate(java.lang.String key, java.lang.String template, com.aspose.ms.System.Type modelType)
      Adds the template to the template collection.
      java.lang.String compile(java.lang.String key, java.lang.Object model)
      Transforms the template with the given key and model object to output.
    • Method Detail

      • addTemplate

        void addTemplate(java.lang.String key,
                         java.lang.String template,
                         com.aspose.ms.System.Type modelType)

        Adds the template to the template collection.

        Parameters:
        key - Key for the template in the template collection.
        template - Template content.
        modelType - Type of a model object for the template.
      • compile

        java.lang.String compile(java.lang.String key,
                                 java.lang.Object model)

        Transforms the template with the given key and model object to output.

        Parameters:
        key - Key for the template in the template collection.
        model - Model object with data for transformation.
        Returns:
        Resulting output as a String.