Skip to content

Instantly share code, notes, and snippets.

@remcorakers
Created December 27, 2013 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcorakers/8147835 to your computer and use it in GitHub Desktop.
Save remcorakers/8147835 to your computer and use it in GitHub Desktop.
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