class
Crst::HTMLRenderer
- Crst::HTMLRenderer
- Crst::BaseRenderer
- Reference
- Object
Overview
Renders the AST as HTML
This class traverses the document tree and converts each node to its corresponding HTML representation.
Defined in:
crst/html_renderer.crInstance Method Summary
-
#render(node : Node) : String
Render a node to HTML string
Instance methods inherited from class Crst::BaseRenderer
render(node : Node) : String
render,
render_to_builder(node : Node, builder : String::Builder)
render_to_builder
Constructor methods inherited from class Crst::BaseRenderer
new(config : Config = Config.new)
new
Instance Method Detail
Render a node to HTML string
node - The node to render Returns the HTML representation of the node