Builtin reference
The functions available to @tt programs, macros and tool scripts. Each page shows the signature, the phase it is available in and an example that is checked by the compiler when this site is built.
Available in every phase
- emit
- str
- tokens
- ident
- fresh
- len
- range
- replace
- rename
- find
- contains
- split
- join
- slice
- push
- lex
- source
- rewrite
- again
- pass
- get
- put
- eval
- fail
- assert
- log
- read
- exists
- env
- file
- path
- line
- name
- cycle
- target
Native translate time only
These touch the machine, so --check rejects them. They exist for build tools and generators.
Run nanoc help builtins for the same signatures, or nanoc help NAME for one of them.