March Docs

Sigil

Sigil module: handlers for sigil expressions (~R, ~J, etc.)

Most sigils ~X"..." desugar to a call to Sigil.x(content). Handlers receive the interpolated string and return an appropriate type.

The ~H sigil for HTML templates is special: it desugars directly to IOList.from_strings([...]) with separate segments for static and dynamic parts, avoiding intermediate string concatenation.

Functions

fnhh(content : String)#

HTML template sigil handler (legacy entry point).

The ~H sigil now desugars directly to IOList.from_strings([...]) at
compile time, producing multi-segment IOLists without an intermediate
concatenated string.  This function is retained for backward compatibility
with code that calls Sigil.h() explicitly.
fntomltoml(content : String)#
fnxmlxml(content : String)#
fnyamlyaml(content : String)#