Class VanAst
java.lang.Object
dev.vanengine.core.support.VanAst
Mutable HTML AST for the Van template pipeline.
Parse once → operate on tree → serialize once.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VanAst.NodecopyNode(VanAst.Node node) static voidmarkDynamic(List<VanAst.Node> nodes) Mark dynamic subtrees — nodes with directives, {{ }}, or :attr.static List<VanAst.Node> static List<VanAst.Node> smartCopy(List<VanAst.Node> nodes) Smart copy: only deep-copy dynamic subtrees.static StringtoHtml(List<VanAst.Node> nodes)
-
Method Details
-
markDynamic
Mark dynamic subtrees — nodes with directives, {{ }}, or :attr. Static subtrees can be shared. -
smartCopy
Smart copy: only deep-copy dynamic subtrees. Static subtrees are shared by reference. -
copyNode
-
parse
-
toHtml
-