Interface TemplateModel

    • Field Detail

      • NOTHING

        static final TemplateModel NOTHING
        Deprecated.
        Try not to use this.
        A general-purpose object to represent nothing. It acts as an empty string, false, empty sequence, empty hash, and null-returning method model. It is useful if you want to simulate typical loose scripting language sorts of behaviors in your templates.
      • JAVA_NULL

        static final TemplateModel JAVA_NULL
        A singleton value used to represent a java null which comes from a wrapped Java API, for example, i.e. is intentional. A null that comes from a generic container like a map is assumed to be unintentional and a result of programming error.
      • INVALID_EXPRESSION

        static final TemplateModel INVALID_EXPRESSION
        A singleton value used to represent the result of an invalid expression, such as 1 - "3"