visol/typo3-handlebars

This is a TYPO3 CMS extension to render native handlebars templates

Installs: 1 374

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 7

Forks: 3

Open Issues: 2

Type:typo3-cms-extension

3.0.2 2022-10-27 07:42 UTC

README

This is a TYPO3 CMS extension to render native handlebars templates

 

Helper

Within the extension there are a few Handlebars helpers configured by default, such as content, block, json, lookup. On the top of that we can add new custom handlebars helper which can be declared in ext_localconf.php as follows

\Visol\Handlebars\HelperRegistry::getInstance()->register(
    'foo', 
    function ($labels, $key) {
        return $labels[$key];
    }
);