Update Template Extensions
parent
f6e860fb2b
commit
26e032baa4
@ -1,16 +0,0 @@
|
|||||||
The `ParsedownHelper` template extension gives us a new tag to use in our templates.
|
|
||||||
|
|
||||||
``` html
|
|
||||||
<parsedown>{{ @variable | raw }}</parsedown>
|
|
||||||
```
|
|
||||||
|
|
||||||
This will resolve in the pre-compiled template file as
|
|
||||||
|
|
||||||
``` php
|
|
||||||
<parsedown_rendered class="content">
|
|
||||||
<?php echo \ParsedownHelper::instance()->build($variable);?>
|
|
||||||
</parsedown_rendered>
|
|
||||||
```
|
|
||||||
|
|
||||||
Which ultimately calls
|
|
||||||
` Parsedown::instance()->text($variable); `
|
|
||||||
29
Template-Extensions.md
Normal file
29
Template-Extensions.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# ParsedownHelper
|
||||||
|
The `ParsedownHelper` template extension gives us a new tag to use in our templates.
|
||||||
|
|
||||||
|
``` html
|
||||||
|
<parsedown>{{ @variable | raw }}</parsedown>
|
||||||
|
```
|
||||||
|
|
||||||
|
This will resolve in the pre-compiled template file as
|
||||||
|
|
||||||
|
``` php
|
||||||
|
<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.
|
||||||
|
|
||||||
|
``` html
|
||||||
|
<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>
|
||||||
Loading…
x
Reference in New Issue
Block a user