Skip to content

fenom-template/entity-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom tag and modifier loader for Fenom

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) {});