Skip to content

Instantly share code, notes, and snippets.

@remcorakers
Created December 27, 2013 14:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
DD4T Component View, based on Razor view engine.
@using DD4T.Mvc.Html
@model DD4T.ContentModel.IComponentPresentation
@{
Layout = "";
}
<h2>@Model.Component.Fields["Title"].Value</h2>
@Model.Component.Fields["Body"].Value.ResolveRichText()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment