Menu

Prototyping for MVC

A collection of helpers for MVC to assist with wireframing.

What is Prototyping MVC

The Prototyping for MVC package provides a fluent API that creates Lorem Ipsum text and placeholder images at runtime using simple helper extension methods. Prototyping for MVC is specifically for reducing prototyping markup. Since lorem ipsum is injected at runtime, your markup remains untouched and your source code remains clean.

Getting started

  1. Install Prototyping for MVC via NuGet
    PM> Install-Package Prototyping_MVC
  2. Reference Prototyping
    @using Prototyping.Ipsum;
    @using Prototyping.Placeholdit;
  3. Use the helpers to generate text and images
    //Paragraph
    @Html.Ipsum().p()
    //Image placeholder
    @Html.Placehold(300,300)
    //Fluent api @Html.Ipsum().h1().p().h2().p().h3().ol(10,3, true)

Documentation

Ipsum()
Gets a random paragraph
Ipsum().p([int paragraphCount = 1], [int sentenceCount = 5], [object htmlAttributes = null])
Gets a paragraph(s) of specific length
Ipsum().h1([int wordCount = 2], [object htmlAttributes = null])
Gets an h1 heading
Ipsum().h2([int wordCount = 2], [object htmlAttributes = null])
Gets an h2 heading
Ipsum().h3([int wordCount = 2], [object htmlAttributes = null])
Gets an h3 heading
Ipsum().h4([int wordCount = 2], [object htmlAttributes = null])
Gets an h4 heading
Ipsum().h5([int wordCount = 2], [object htmlAttributes = null])
Gets an h5 heading
Ipsum().h6([int wordCount = 2], [object htmlAttributes = null])
Gets an h6 heading
Ipsum().ul([int listCount = 5], [int wordCount = 2], [bool links = false], [object ulAttributes = null], [object liAttributes = null])
Gets an ul element with list items
Ipsum().ol([int listCount = 5], [int wordCount = 2], [bool links = false], [object olAttributes = null], [object liAttributes = null])
Gets an ol element with list items
Ipsum().dl([int listCount = 5], [int wordCount = 2], [bool links = false], [object dlAttributes = null], [object ddAttributes = null])
Gets an ol element with list items
Ipsum().Paragraphs(int count)
Gets paragraphs without the HTML tag
Ipsum().Words(int count)
Gets Words without an HTML tag
Ipsum().BlogPost()
Gets a staic set of HTML paragraphs that simulate a blog post
Placehold(int width, int height, [string text = null], [string backgroundColor], [string foregroundColor], [object htmlAttributes = null], [ImgFormat format = ImgFormt.Gif])
Gets a placeholder image via Placehold.it