Skip to content

Generate Lorem Ipsum paragraphs based on placeholders

Notifications You must be signed in to change notification settings

Cloudxtreme/ipsify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

ipsify

Generate Lorem Ipsum paragraphs based on placeholders.

What is is

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.

How to use

By default, the placeholder is:

{li#}

Where # is the number of paragraphs to insert. So if you want 3 paragraphs, just write:

{li3}
    1. Include the script and initialize it.
    1. Put your placeholders in your document.
    1. 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)}/
});

Why?

I'm lazy, and I was bored.

About

Generate Lorem Ipsum paragraphs based on placeholders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%