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-10-29 04:36:43 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) {});