Muster::Hook::DynamicField - Muster hook for dynamic fields
version 0.61
# CamelCase plugin name package Muster::Hook::DynamicField; use Mojo::Base 'Muster::Hook';
Muster::Hook::DynamicField does dynamic fields: field-substitution for derived values which are not always constant, such as the current date.
The pattern for dynamic fields is "{{!fieldname}}".
Initialize, and register hooks.
Process (modify) a leaf object. In scanning phase, this will do nothing, because it's pointless. In assembly phase, it will do simple substitutions of calculated data (which may or may not be derived from the leaf data).
my $new_leaf = $self->process(%args);
Get the dynamic value for this page.
Process the given function for this page.
To install Muster, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Muster
CPAN shell
perl -MCPAN -e shell install Muster
For more information on module installation, please visit the detailed CPAN module installation guide.