Mint::Compiler::Js
This class is responsible for creating a tree of JS code.
Constructors
Class methods
async?(items : Compiled)
Sourceasync?(item : Item)
SourceInstance methods
Renders an arrow function.
Renders multiple const assignments (as one).
constants(assigns)
SourceRenders an initializer.
Renders an object. The key can be any item but it's usually a string or an identifier.
Renders a string using a template literal (``).
TODO: Check if a simple string is enough?
ternary(condition : Compiled, truthy : Compiled, falsy : Compiled) : Compiled
Renders an ternary operator.