class Crinja
- Crinja
- Reference
- Object
Overview
This class represents the core component of the Crinja template engine.
It contains the runtime environment including configuration, global variables as well as loading and rendering templates.
Instances of this class may be modified if they are not shared and if no template was loaded so far. Modifications on environments after the first template was loaded will lead to surprising effects and undefined behavior.
It also contains macros to easily define custom template features such as filters, tests and functions.
Included Modules
- Crinja::Resolver
Defined in:
lib/crinja/src/crinja.crlib/crinja/src/environment.cr
lib/crinja/src/object.cr
lib/crinja/src/runtime/callable.cr:1
lib/crinja/src/runtime/callable.cr:99
lib/crinja/src/runtime/safe_string.cr
lib/crinja/src/runtime/undefined.cr
lib/crinja/src/runtime/value.cr:1
lib/crinja/src/runtime/value.cr:11
lib/crinja/src/visitor/html.cr
lib/crinja/src/visitor/inspector.cr
crinja_patch.cr