Let's say I have a CSS/HTML design, and I would like to show it to the client. Instead of filling it with lorem ipsum and placehold.it, I would like to fill it with more realistic (or just nicer) data.
Also I would like to avoid repeating the content blocks. For example instead of writing the code bellow:
<section>
<article>
<h2>Lorem ipsum title...<h2>
<img src="http://placehold.it/200x100" align="left" />
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...<p>
</article>
<article>
<h2>Donec a sodales urna...<h2>
<img src="http://placehold.it/200x100" align="left" />
<p>Nunc luctus viverra risus in molestie. Maecenas eros nisl,...<p>
</article>
<article>
<h2>Phasellus nunc dolor...<h2>
<img src="http://placehold.it/200x100" align="left" />
<p>Pellentesque habitant morbi tristique senectus et netus...<p>
</article>
</section>
I would like to write it like this:
<section>
<article repeat="3">
<h2 title words="5"><h2>
<img image width="200" height="200" align="left" />
<p text words="20"><p>
</article>
</section>
I'm certain that I've seen a JavaScript library that does exactly that but I couldn't find it.