| 1 | package Text::Nunjucks::Nodes::Block; | ||
| 2 | # ABSTRACT: AST node Block (fields name, body), 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 Block = Node.extend('Block', { fields: ['name', 'body'] }); | ||
| 12 | |||
| 13 | 20 | has name => ( is => 'rw' ); | |
| 14 | 20 | has body => ( is => 'rw' ); | |
| 15 | |||
| 16 | 1192 | ▶ | sub typename { 'Block' } |
|
Subroutine
typename: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 5962 | ▶ | sub fields { [ 'name', 'body' ] } |
|
Subroutine
fields: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | |||
| 19 | 20 | 1; | |
| 20 | |||
| 21 | __END__ | ||