Generate Lorem Ipsum paragraphs based on placeholders.
Instead of copy pasting dummy text, you can just write a placeholder with the desired number of 'Lorem Ipsum' paragraphs, and they will be inserted in your elements. Just that.
By default, the placeholder is:
{li#}
Where # is the number of paragraphs to insert. So if you want 3 paragraphs, just write:
{li3}
-
- Include the script and initialize it.
-
- Put your placeholders in your document.
-
- Rejoice!
<script src="ipsify.js"></script>
<script>var foo = new Ipsify();</script>
You can customize your placeholder, by passing a custom RegExp to the constructor. For example:
var foo = new Ipsify({
slug: /^{my-custom(\d)}/
});
I'm lazy, and I was bored.