Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Created September 11, 2015 03:06
Show Gist options
  • Save phillipsj/948e2cb818d9e8439204 to your computer and use it in GitHub Desktop.
Save phillipsj/948e2cb818d9e8439204 to your computer and use it in GitHub Desktop.
Orchard Layout with JSON.NET
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