public class RootNode extends ParentNode
| Constructor and Description |
|---|
RootNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFragment(String name,
TagNode tagNode,
org.htmlparser.lexer.PageAttribute attribute,
Coordinate templateStartCoordinate,
org.htmlparser.Tag tag)
Adds a fragment to the template that can be rendered directly.
|
ParentNode |
getFragment(String name)
Returns a fragment based on its name.
|
void |
render(TemplateContextImpl templateContext) |
getChildren, renderChildrenpublic void addFragment(String name, TagNode tagNode, org.htmlparser.lexer.PageAttribute attribute, Coordinate templateStartCoordinate, org.htmlparser.Tag tag)
name - The name of the fragment.tagNode - The fragment node.attribute - The attribute that contains the fragment definition.templateStartCoordinate - The beginning coordinates of the fragment.tag - The tag that contains the data-eht-fragment attribute.public ParentNode getFragment(String name)
name - The name of the fragment.public void render(TemplateContextImpl templateContext)
Copyright © 2011–2015 Everit Kft.. All rights reserved.