Macro Help
Each Macro() in the Pagefactory system is self-documenting.
To see Help for a given macro, just write help as the sole argument:
{{ lorem(help) }}
lorem()
Renders filler text "Lorem ipsum…".
If you set min or max values, rendered words are selected at random.
Arguments
- min
- If set, defines the minimum number of random words to be rendered. (default: false)
- max
- If set, defines the maximum number of random words to be rendered (max: 99). (default: false)
- dot
- If true, a dot will be appended at the end of the output (default: false)
- class
- Class to be applied to the wrapper element (default: )
- wrapperTag
- Allows to define the tag of the wrapper element (default: div)
Show Source
If you want to visualize the source code of a Macro() call, you can use a special argument showSource: true:
{{ lorem(min:3, max: 9, showSource:true) }}
Result:
Sit dolor dolor ut sea takimata
Collapsed Source
If you want to visualize the source code, but leave it hidden until requested, use showSource: reveal:
{{ lorem(
min:3,
max: 9,
showSource: reveal
) }}
Result:
Clita invidunt erat,
sed dolor et tempor et