Skip to content

pbFenom

Snippet for rendering HTML with the Fenom templating engine.

Usage

php
{'!pbFenom'|snippet: [
    'tpl' => '@FILE templates/base.tpl'
]}

Description

This snippet renders a Fenom template and outputs the result. You can include it directly in your MODX template to work exclusively with file-based templates.

Once called, the template file (e.g. base.tpl) will be processed by Fenom, allowing full use of its syntax and features.

© PageBlocks 2019-present