Last updated by stevegood 1 year ago
grails install-plugin lorem-ipsum-generator
Last updated by stevegood 1 year ago
Overview
The Lorem Ipsum Generator plugin provides a taglib for generating mockup filler text, or lorem ipsum. Use the tag to generate lorem ipsum (using the lipsum.com api) in your GSPs or the lorem.ipsum() method to generate filler text inline with groovy code.
Usage
Use the taglib either as a tag in your GSPs or as a method call while inline with groovy code.
Params
- what : string
- paras (default)
- words
- bytes
- amount : integer
- paras - default: 2, min: 1
- words - default: 5, min: 5
- bytes - default: 27, min: 27
- startWithLoremIpsum : boolean
- Should the filler text start with "Lorem Ipsum"?
- default : true
- tag : string
- what tag should be used to wrap the filler text?
- default: p
- use none to supress wrapping
Examples
Use the defaults, 2 paragraphs wrapped with paragraph tags (<p/>)
Generate 100 words that do
not start with "Lorem ipsum" and wrap them with an <h3/> tag
<lorem:ipsum what="words" amount="100" tag="h3" startWithLoremIpsum="false" />
Generate 5 paragraphs wrapped with <div/> tags
<lorem:ipsum amount="5" tag="div" />
Generate 10 words without a wrapping tag
<lorem:ipsum what="words" amount="10" tag="none" />
Last updated by burtbeckwith 11 months ago
Last updated by admin 1 year ago