Kathryn Andersen
and 1 contributors

NAME

Muster::Hook::DynamicField - Muster hook for dynamic fields

VERSION

version 0.62

SYNOPSIS

  # CamelCase plugin name
  package Muster::Hook::DynamicField;
  use Mojo::Base 'Muster::Hook';

DESCRIPTION

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}}".

METHODS

register

Initialize, and register hooks.

process

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_dynamic_value

Get the dynamic value for this page.

get_function_result

Process the given function for this page.