NAME
Text::Nunjucks::Runtime - 1:1 port of Nunjucks src/runtime.js -- frames, macros, member lookup
VERSION
version 0.001
DESCRIPTION
A 1:1 port of Nunjucks src/runtime.js: the Frame scope chain, macros and keyword arguments, member and call lookup, output suppression and SafeString, and the JavaScript operators the compiled templates call (ADR 0001, 0006, 0007, 0009). The classes it works with each have their own file (ADR 0020): Text::Nunjucks::Runtime::Frame, Text::Nunjucks::Runtime::SafeString, Text::Nunjucks::Runtime::None (the object that stands for JavaScript's null, ADR 0006), Text::Nunjucks::Runtime::KwArgs and Text::Nunjucks::Runtime::Regex. This module loads them and hands them out by name. Everything is called as a class method; $runtime in the compiled code is this class's name.
Engine-internal: used by Text::Nunjucks::Environment and the code the compiler emits, and not an interface for applications, with two exceptions: Text::Nunjucks::Runtime->None returns the null object for template contexts, and filters receive keyword arguments as a Text::Nunjucks::Runtime::KwArgs object.
SUPPORT
Issues
Please report bugs and feature requests at https://github.com/Getty/p5-text-nunjucks/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.