From 26e032baa408d94d560701d8a8456cce044dc00f Mon Sep 17 00:00:00 2001 From: tp_dhu Date: Thu, 13 Feb 2025 20:36:29 +0000 Subject: [PATCH] Update Template Extensions --- ParsedownHelper.md | 16 ---------------- Template-Extensions.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 16 deletions(-) delete mode 100644 ParsedownHelper.md create mode 100644 Template-Extensions.md diff --git a/ParsedownHelper.md b/ParsedownHelper.md deleted file mode 100644 index 2a8e050..0000000 --- a/ParsedownHelper.md +++ /dev/null @@ -1,16 +0,0 @@ -The `ParsedownHelper` template extension gives us a new tag to use in our templates. - -``` html -{{ @variable | raw }} -``` - -This will resolve in the pre-compiled template file as - -``` php - -build($variable);?> - -``` - -Which ultimately calls -` Parsedown::instance()->text($variable); ` \ No newline at end of file diff --git a/Template-Extensions.md b/Template-Extensions.md new file mode 100644 index 0000000..a207b59 --- /dev/null +++ b/Template-Extensions.md @@ -0,0 +1,29 @@ +# ParsedownHelper +The `ParsedownHelper` template extension gives us a new tag to use in our templates. + +``` html +{{ @variable | raw }} +``` + +This will resolve in the pre-compiled template file as + +``` php + +build($variable);?> + +``` + +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. + +``` html + +``` + +## Types +- `H_FIELD_INPUT` - Horizontal Field +- `H_FIELD_TEXTAREA` - Horizontal Field