| 1 | package Text::Nunjucks::Nodes::Import; | ||
| 2 | # ABSTRACT: AST node Import (fields template, target, withContext), ported from nodes.js | ||
| 3 | |||
| 4 | 20 | our $VERSION = '0.001'; | |
| 5 | |||
| 6 | 20 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 20 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 20 | extends 'Text::Nunjucks::Nodes::Node'; | |
| 10 | |||
| 11 | # nodes.js: const Import = Node.extend('Import', { fields: ['template', 'target', 'withContext'] }); | ||
| 12 | |||
| 13 | 20 | has template => ( is => 'rw' ); | |
| 14 | 20 | has target => ( is => 'rw' ); | |
| 15 | 20 | has withContext => ( is => 'rw' ); | |
| 16 | |||
| 17 | 674 | ▶ | sub typename { 'Import' } |
|
Subroutine
typename: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 3571 | ▶ | sub fields { [ 'template', 'target', 'withContext' ] } |
|
Subroutine
fields: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | |||
| 20 | 20 | 1; | |
| 21 | |||
| 22 | __END__ | ||