elefant / app-lorem
A lorem ipsum generator for the Elefant CMS
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:elefant-app
Requires
This package is auto-updated.
Last update: 2024-11-25 06:56:02 UTC
README
App to generate lorem ipsum text for testing and prototyping in the Elefant CMS.
Installation
Unzip into your Elefant apps
folder.
Usage
In a view template:
{! lorem/h1 !}
{! lorem/p/2 !}
Generates:
<h1>Lorem ipsum dolor sit amet</h1>
<p>Lorem ipsum...</p>
<p>Integer sed...</p>
From PHP:
<?php
echo Lorem::h1 ();
echo Lorem::p (2);
?>
A number can be passed to each method or appended to each handler call to specify the number of words or paragraphs or list items to include.
Supported methods:
* `Lorem::p()` aka `lorem/p`
* `Lorem::ul()` aka `lorem/ul`
* `Lorem::ol()` aka `lorem/ol`
* `Lorem::h1()-h6()` aka `lorem/h1-h6`