Plugins You can find out about all the publicly available Grails plugins.

Lorem Ipsum Generator

  • Tags: mockup
  • Latest: 1.0
  • Last Updated: 26 October 2010
  • Grails version: 1.3.5 > *
  • Authors: Steve Good
1 vote
compile ":lorem-ipsum-generator:1.0"




grails install-plugin lorem-ipsum-generator



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 api) in your GSPs or the lorem.ipsum() method to generate filler text inline with groovy code.


Use the taglib either as a tag in your GSPs or as a method call while inline with groovy code.


  • 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


Use the defaults, 2 paragraphs wrapped with paragraph tags (<p/>)
<lorem:ipsum />
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" />