gsavage / lorem_ipsum

Rails helper to generate Lorem Ipsum within a view

This URL has Read+Write access

lorem_ipsum / README
100644 26 lines (13 sloc) 0.697 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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