Lorem Ipsum Generator
Dependency :
compile ":lorem-ipsum-generator:1.0"
Summary
Installation
grails install-plugin lorem-ipsum-generator
Description
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/>)<lorem:ipsum />
<lorem:ipsum what="words" amount="100" tag="h3" startWithLoremIpsum="false" />
<lorem:ipsum amount="5" tag="div" />
<lorem:ipsum what="words" amount="10" tag="none" />