Documentation
¶
Overview ¶
Package preprocess implements the @include preprocessor. A /*%! @include name */ parser comment is replaced, recursively, by the named fragment's raw text — producing a fully expanded (still 2-way) template that is then lexed/parsed/rendered normally. Because the directive rides on the /*%! ... */ parser-comment channel, a raw template pasted into a SQL client treats it as a comment (the base SQL runs without the fragment).
Index ¶
Constants ¶
View Source
const DefaultMaxDepth = 50
DefaultMaxDepth bounds recursive expansion (a backstop beyond cycle detection).
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.