NAME

Muster::Hooks - scanning and processing hooks

VERSION

version 0.92

DESCRIPTION

Content Management System scanning and processing hooks

PACKAGE CONSTANTS

$PHASE_SCAN

Hooks are currently in scanning phase where pages are scanned for meta-data.

$PHASE_BUILD

Hooks are currently in build/assemble phase, where the pages are read and built.

$PHASE_FILTER

Hooks are currently in filter phase, where the page has already been converted to HTML, and needs post-processing.

METHODS

init

Set the defaults for the object if they are not defined already.

add_hook

Add a hook.

run_hooks

Run the hooks over the given leaf. Leaf must already be created and reclassified. The "phase" flag says what phase we are in (e.g. scanning)

$leaf = $self->run_hooks(leaf=>$leaf,phase=>$phase);

add_filter

Add a post-processing filter.

run_filters

Run post-processing filters over already-rendered HTML.

$html = $self->run_filters(html=>$html,phase=>$phase);