Skip to content

The Bacon Ipsum plugin for Fansoro will generate you steaming piles of glorious bacon ipsum.

License

Notifications You must be signed in to change notification settings

fansoro/fansoro-plugin-bacon-ipsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bacon Ipsum

BaconIpsum

The Bacon Ipsum plugin for Fansoro will generate you steaming piles of glorious bacon ipsum.

Installation

See this instruction

Usage in page content

Simple usage

{bacon}

Set how many paragraphs of bacon ipsum to generate.

{bacon p=5}

Set type of bacon ipsum to generate.

{bacon p=5 type=meat-and-filler}

Start the first paragraph with ‘Bacon ipsum dolor sit amet’

{bacon p=5 type=meat-and-filler start_with_lorem=1}

Set number of sentences to generate.

{bacon sentences=3}

Set format to return.

{bacon format=json}

Usage in template

Simple usage

{bacon()}

Usage with options

{bacon(['p' => 5, 'type' => 'meat-and-filler', 'start_with_lorem' => '1', 'sentences' => '3', 'format' => 'json'])}

Options

name value description
enabled true or false to disable the plugin
type all-meat all-meat for meat only or meat-and-filler for meat mixed with miscellaneous ‘lorem ipsum’ filler.
p 1 optional number of paragraphs, defaults to 1.
sentences 0 number of sentences (this overrides paragraphs)
start_with_lorem 0 optional pass 1 to start the first paragraph with ‘Bacon ipsum dolor sit amet’.
format text Format text (default), json, or ‘html’

License

See LICENSE

About

The Bacon Ipsum plugin for Fansoro will generate you steaming piles of glorious bacon ipsum.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages