java.lang.Object
org.apache.sling.scripting.sightly.impl.html.dom.template.TemplateParser

public class TemplateParser extends Object
The template parser parses an HTML document and returns a reusable tree representation.
  • Constructor Details

    • TemplateParser

      public TemplateParser()
  • Method Details

    • parse

      public Template parse(Reader reader) throws IOException
      Parse an html document
      Parameters:
      reader - to be parsed
      Returns:
      a Template
      Throws:
      IOException - in case of any parsing error