nml/docs/imports.nml

18 lines
586 B
Text
Raw Permalink Normal View History

2024-11-03 11:52:26 +01:00
@import template.nml
@nav.previous = References
%<make_doc({}, "Imports", "Imports")>%
# Imports
NML lets you import documents into the current document via the following syntax:
``Plain Text, @import <PATH.nml>``
Note that this will import everything from the other document, such as content but also variables and references.
# Scoped imports
If you wish to import a document, while not overwriting current variables and references, use the following:
``Plain Text, @import[as=util] lib.nml``
With this syntax, any variable or reference imported will be prefixed with ``util.``