Clone
3
Template Extensions
tp_dhu edited this page 2025-02-17 01:29:45 +00:00

ParsedownHelper

The ParsedownHelper template extension gives us a new tag to use in our templates.

<parsedown inline="true">
# Markdown
directly in the template `file` itself.
</parsedown>

alternatively

<parsedown>{{ @variable | raw }}</parsedown>

This will resolve in the pre-compiled template file as

<parsedown_rendered class="content">
<?php echo \ParsedownHelper::instance()->build($variable);?>
</parsedown_rendered>

Which ultimately calls Parsedown::instance()->text($variable);

BulmaFormHelper

The BulmaFormHelper template extension gives us a new tag to use in our templates. This gives us a unified way of constructing bulma.io CSS forms, with additional wrappers.

<bulma type="" label="" name="" value=""></bulma>

Types

  • H_FIELD_INPUT - Horizontal Field <input>
  • H_FIELD_TEXTAREA - Horizontal Field <textarea>
  • H_FIELD_SELECT - Horizontal Field <select>