class

Slang::CodeGen

Inherits Reference < Object

Constructors

new(filename : String | Nil, buffer_name : String)
Source

Class 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.

Source

Instance methods

generate(document : AST::Document) : String
Source