API Reference Marker v#2.1.1
View SourceModules
Marker.Compiler
renders the element macros to html. It tries do as much work during macro expansion,
resulting in a run time performance comparible to precompiled templates.
This module is responsible for generating element macro's. Marker generates by default all html5 elements, but you can easily generate other elements too
The Marker Encoder protocol.
All HTML elements are generated in this module.
To use the element macros outside of components and templates, use use Marker.HTML
instead of import Marker.HTML
to import them in to the current scope.
The use
macro automatically handles any ambiguities between html elements and the funcions from Kernel
. Kernel.div/2
for example is unimported to allow the use of the div
element.
If you still need to use Kernel.div/2
, just call it as Kernel.div(20, 2)