Lorem Ipsum
Words
{{ craft.lorem.w(1) }} >> 1 word
{{ craft.lorem.w(5) }} >> 5 words
Sentences
{{ craft.lorem.s(2) }} >> 2 sentences
Paragraphs
{{ craft.lorem.p(1) }} >> 1 paragraph
Need it wrapped ? Just use {{ tag }}
{{ tag('p', {
text: craft.lorem.w(10),
class: 'text-center'
}) }}
output >> <p class="text-center">lorem ipsum...</p>
You may also provide a tag
for sentences
and paragraphs
{{ craft.lorem.s(2, 'p')
output >> <p>lorem ipsum...</p><p>lorem ipsum...</p>
I love using it as fallback/placeholder for text fields
{% set data = {
text: entry.textField ?? craft.lorem.w(10)
} %}
{{ data.text }}
- Installation Instructions
To install this plugin, copy the command above to your terminal.
- Active Installs
- 12
- License
- MIT
- Last release
- April 9, 2023
- Activity (30 days)
- 0Closed Issues0Open Issues0Merged PRs0Open PRs