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
22
License
MIT
Last release
March 27, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs