Annotation Interface JStachePartial


Allows you to define and remap/override partials on a model (JStache)
  {{> name }}
  
. Name in this case is defined by name() and would be the logical name of the partial. The physical definition of the partial is defined with a resource path() or inlined template().

The path() is still expanded by JStachePath if present.

Author:
agentgt
API Note
While this annotation looks like JStache there is no associated model with a partial.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The logical name of the template.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The physical path of the template.
    Inline template.
  • Element Details

    • name

      The logical name of the template.
      Returns:
      required name of template
    • path

      The physical path of the template. If empty template() will be used.
      Returns:
      the physical resource path of the template.
      See Also:
      Default:
      ""
    • template

      Inline template. If not set path() will be used. If path is not set then the template will be an empty string.
      Returns:
      inlined template by default returns empty string which means not set.
      Default:
      ""