gsavage / lorem_ipsum

Rails helper to generate Lorem Ipsum within a view

This URL has Read+Write access

Graham Savage (author)
Wed Feb 11 14:54:52 -0800 2009
commit  d13ce0c4016ae666feeff84075a4583604865f0a
tree    11f27d60e4967a8ad6900e79402ca659f2310ea6
parent  f2b7d9941c6eb179faa911afc9b2d98128260636
name age message
file README Wed Feb 11 14:36:40 -0800 2009 Updated the readme file with usage instructions [Graham Savage]
directory generators/ Wed Feb 11 14:18:22 -0800 2009 Initial commit of the generator. README file s... [Graham Savage]
file install.rb Wed Feb 11 14:54:52 -0800 2009 Added installation file, to print the readme [Graham Savage]
README
Lorem Ipsum Generator
=====================

Install the plugin using the usual

script/plugin install git://github.com/gsavage/lorem_ipsum.git

Using the generator:

script/generate lorem_ipsum

That will add a file to your lib directory, and to app/helpers

To use the helper:

<%= lorem_ipsum %>  (Generates a chunk of it as raw text with \n line breaks)

<%= lorem_ipsum(25) %>  (Generates approximate number of bytes of it as raw text with \n line breaks)

<%= lorem_ipsum(25, "<br/>") %>   (Generates approximate number of bytes of it as raw text with \n line breaks converted 
to <br/>)


It's rough and ready.

Lorem Ipsum extract taken from http://www.lipsum.com/ courtesy of James Wilson