Slang::CodeGen
Inherits Reference < Object
Constructors
new(filename : String | Nil, buffer_name : String)
SourceClass methods
generate(document : AST::Document, filename : String | Nil, buffer_name : String) : String
Emits Crystal source for document. filename is used for
source-attribution directives; pass nil or "" to disable.
buffer_name is the local variable the generated code writes
HTML to.
Instance methods
generate(document : AST::Document) : String
Source