public override void Render(Context context, TextWriter result) { // It's easier to fake every context and create a HtmlHelper to use the ClassForPage() extension. Note that // we also need to encode the output (and this is done in the ClassForPage() extension method)! context.WriteHtmlHelperOutputToResult( html => html.ClassForPage(GetEvaluatedParameters(context)), result); }
public override void Render(Context context, TextWriter result) { context.WriteHtmlHelperOutputToResult(html => html.AntiForgeryTokenValueOrchard(), result); }