fenom/entity-loader

Fenom extension: set you rule for tag and modifier loader

1.0.1 2015-01-29 19:57 UTC

This package is auto-updated.

Last update: 2024-11-29 04:52:13 UTC


README

Install

Use composer:

{  
    "require": {
        "fenom/entity-loader": "1.*"
    }
}

Setup

Add trait into your Fenom class:

class MyFenom extends Fenom {
    use Fenom\EntityLoaderTrait;
}

Use

$fenom->addModifierLoader(function ($modifier_name, Fenom\Template $tpl) {});
$fenom->addTagLoader(function ($tag_name, Fenom\Template $tpl) {});