ante marcus

Simple lorem Ipsum generator helper for Web matrix web page projects

Hi,
Lorem Ipsum generator allows web page designers to quicly add dummy content to their site.
Developed in C# , you no longer have to worry about writing dummy content will testing your pages.
Just enter the following code :
@Utils.LoremIpsum.generate();
and voila !


How to use it in your WebMatrix web pages ?

In the root of you site , create a folder named APP_CODE and put the provided Csharp class in it ( LoremIpsum.cs and RandomStringArrayTool.cs )

Within your html code, in a cshtml file , put the following statement :

@Utils.LoremIpsum.generate();

availables options are :

- word number
- number of words in a paragraph
- apply a CSS class ( boolean ) ?
- the name of the CSS class to apply

for instance :

@Utils.LoremIpsum.generate(200,100,true,"myClass");

will generate a 200 words block of 2 paragraphs , and apply a CSS class name myClass on it.

The code is published under MIT license.

http://en.wikipedia.org/wiki/MIT_License

Enjoy !

Ante Marcus

Additional information on starting a new project is available here: Project Startup Guide.

Last edited Oct 7, 2010 at 8:47 AM by camus2, version 5