Prototyping_MVC 1.3.1
dotnet add package Prototyping_MVC --version 1.3.1
NuGet\Install-Package Prototyping_MVC -Version 1.3.1
<PackageReference Include="Prototyping_MVC" Version="1.3.1" />
paket add Prototyping_MVC --version 1.3.1
#r "nuget: Prototyping_MVC, 1.3.1"
// Install Prototyping_MVC as a Cake Addin #addin nuget:?package=Prototyping_MVC&version=1.3.1 // Install Prototyping_MVC as a Cake Tool #tool nuget:?package=Prototyping_MVC&version=1.3.1
Prototyping for ASP.Net 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. The Prototyping package for MVC is specifically for reducing prototyping markup.
Install Prototyping for MVC via NuGet: http://nuget.org/packages/Prototyping_MVC or PM> Install-Package Prototyping_MVC
Getting started.
@using Prototyping.Ipsum;
@using Prototyping.Placeholdit;
//Ipsum examples //Random paragraph
@Html.Ipsum()
//Paragraph
@Html.Ipsum().p()
//Four paragraphs, ten sentences
@Html.Ipsum().p(4, 10)
//Paragraph with the attribute class="fancy"
@Html.Ipsum().p(htmlAttributes: new { @class = "fancy" })
//h1 tag
@Html.Ipsum().h1()
//h1 tag, just one word long
@Html.Ipsum().h1(1)
//h2 tag, with the attribute data-special="true"
@Html.Ipsum().h2(5, new { data_special = "true" })
//unordered list
@Html.Ipsum().ul()
//unordered list of links
@Html.Ipsum().ul(links: true)
//a mock blog post
@Html.Ipsum().BlogPost()
//non HTML ipsum
@Html.Ipsum().Words(50)
@Html.Ipsum().Paragraphs(2)
//Fluent api
@Html.Ipsum().h1().p().h2().p().h3().ol(10,3, true)
//Image placeholder
@Html.Placehold(300,300)
//Table Builder
@Html.Ipsum().Table(10,6,new string[]{"d","t","n"} )
Credits Placeholder helper uses the http://placehold.it service and requires a network connection.
NLipsum generator http://code.google.com/p/nlipsum/ for the Lorem Ipsum engine
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Prototyping_MVC:
Package | Downloads |
---|---|
KendoQsBoilerplate
Learn how to get started with Telerik UI for ASP.NET MVC with this step by step turorial. |
|
StyleGuideKit
This is a starter kit for creating a Style Guide for your MVC application. This kit was created as a code sample for the article On Creating a Live Style Guide for MVC Application Development (Simple-Talk.com). |
GitHub repositories
This package is not used by any popular GitHub repositories.
1.3
Added htmlAttributes to the table API
1.2
Added table element
1.1
Added dl > dd element
1.0
Initial release
Placeholder helper uses the http://placehold.it/ service and requires a network connection.
Credits to http://code.google.com/p/nlipsum/ for the NLipsum generator.