Files
Umbraco-CMS/src/Umbraco.Web/FormlessPage.cs
Shannon Deminick c3747d70ce Added ObjectExtensionsTests, Added functionality for MVC to render any macro types (i.e. razor and xslt, etc..)
Adds UmbracoHelper as a property to the RenderViewPage for MVC. Tested rendering Xslt and Razor macros with and
without parameters and works well.
Next we need to get the RTE rendering with macros embedded in MVC.
2012-09-03 07:54:09 +07:00

20 lines
723 B
C#

using System.Web.UI;
namespace Umbraco.Web
{
/// <summary>
/// A formless page for use with the rendering a control in a page via Server.Execute.
/// This ignores the check to check for a form control on the page.
/// </summary>
/// <remarks>
/// UmbracoHelper currently uses this for rendering macros but could be used anywhere we want when rendering
/// a page with Server.Execute.
/// SD: I have a custom MVC engine that uses this in my own internal libs if we want to pull it out which is called ViewManager
/// and works really well for things like this.
/// </remarks>
internal class FormlessPage : Page
{
public override void VerifyRenderingInServerForm(Control control) { }
}
}