Class Mustache.AbstractPartialSegment

Direct Known Subclasses:
Mustache.IncludedTemplateSegment, Mustache.ParentTemplateSegment
Enclosing class:
Mustache

protected abstract static class Mustache.AbstractPartialSegment extends Mustache.NamedSegment
An abstract segment that is a template include.
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public final void execute(Template tmpl, Template.Context ctx, Writer out)
      Specified by:
      execute in class Template.Segment
    • getTemplate

      protected final Template getTemplate()
    • _loadTemplate

      protected Template _loadTemplate()
    • isStandalone

      public abstract boolean isStandalone()
      Description copied from class: Template.Segment
      Whether or not the segment is standalone. The definition of standalone is defined by the mustache spec. String and variable tags are never standalone. For blocks this is based on the closing tag. Once trim is called, standalone tags are determined so that proper (re)indentation will work without reparsing the template.
      Specified by:
      isStandalone in class Template.Segment
      Returns:
      true if the tag is standalone.