NAME

Text::Nunjucks::Nodes - AST node types for Text::Nunjucks, ported 1:1 from nodes.js

VERSION

version 0.001

DESCRIPTION

Engine-internal: this module is a stage of the template pipeline, used by Text::Nunjucks::Environment, and not an interface for applications.

A 1:1 port of Nunjucks src/nodes.js. Loads every node class: the base classes (Node, Value, NodeList), the two nodes with a custom constructor (FromImport, CallExtension) and the concrete node types upstream declares with Node.extend(name, { fields }), each in its own file (Text::Nunjucks::Nodes::Node, Text::Nunjucks::Nodes::If, ...).

Every node lives in the Text::Nunjucks::Nodes:: namespace (e.g. Text::Nunjucks::Nodes::Symbol) and is constructed positionally:

Text::Nunjucks::Nodes::Symbol->new( $lineno, $colno, $value );

Each node answers typename, fields (an arrayref of field names in declared order), lineno, colno, and one accessor per field.

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.