Created
September 11, 2015 03:06
-
-
Save phillipsj/948e2cb818d9e8439204 to your computer and use it in GitHub Desktop.
Orchard Layout with JSON.NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var layout = new JObject("elements", | |
new JArray( | |
new JObject( | |
new JProperty("typeName", "Orchard.Layouts.Elements.Html"), | |
new JProperty("data", string.Format("Content={0}", Encode(Text))) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment