Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

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.

Reviews

This plugin doesn't have any reviews.

Active Installs
26
Version
2.0.0
License
MIT
Compatibility
Craft 4, Craft 5
Last release
March 27, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs