Mvc Plastic editor
A drop-in browser based editor for ASP.NET Mvc projects.
Feature Overview
- Capturing view context and view data as it occur
- Reviewing rendered screens as you would a slide deck
- In-place editing of the views and content files
- Tweak repeatedly without re-submitting forms or re-executing controller actions
See also PlasticDocumentation and Screen shots
News
Blog entry Plastic Editor for Asp.Net Mvc ready to beta
Getting MvcPlastic
Download MvcPlastic.zip or MvcPlastic.dll from PlasticDownload
Or build from source code. Download MvcPlastic-souce.zip or use subversion.
svn co http://dev.dejardin.org/svn/plastic/trunk plastic cd plastic build
Which will create the dist\bin\MvcPlastic.dll you may use.
Installation
MvcPlastic.dll can be added to a project as an assembly reference or by copying into the bin directory of an existing web app. (todo: gac support)
If you add an assembly reference you can activate it with a line of code in the Global Application_Start method or by adding a http module to the web.config. If you copy it into the bin directory you need to add the http module to the web.config.
web.config setup
Add a reference to MvcPlastic.dll or copy to bin directory of existing app.
Include the PlasticEditor as an http module in the web.config
<system.web>
...
<httpModules>
...
<add name="PlasticEditor" type="MvcPlastic.PlasticEditor, MvcPlastic"/>
</httpModules>
</system.web>
<system.webServer>
...
<modules runAllManagedModulesForAllRequests="true">
...
<add name="PlasticEditor" type="MvcPlastic.PlasticEditor, MvcPlastic"/>
</modules>
</system.webServer>
Application_Start setup
Or you can install it from the global Application_Start. If the optional boolean argument is true then visits will be captured without going into the plastic and enabling it. If it is false then you have to enable capturing from the "/plastic" index page.
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
//add this line of code
MvcPlastic.PlasticEditor.Install(true);
}
Build and use your web site normally. At some point when you wish to review screens and edit content files simply point the browser to "/plastic" or "/plastic.mvc" depending on how your standard controller routes are defined. Be sure you leave the host name and port intact.
Become Involved
As before this project is an early start on a concept based on the mvc preview. It's very rough.
That said collaboration is of course welcomed. Please create tickets for defects and feel free as well to attach patch files to tickets.
