Skip to content

Instantly share code, notes, and snippets.

@DarthFubuMVC
Created February 22, 2010 23:03
Show Gist options
  • Save DarthFubuMVC/311632 to your computer and use it in GitHub Desktop.
Save DarthFubuMVC/311632 to your computer and use it in GitHub Desktop.
public static RenderPartialExpression<TInputModel> QuickPartial<TInputModel, TPartialModel>(
this IFubuPage<TInputModel> page, Expression<Func<TInputModel, TPartialModel>> expression)
where TInputModel : class
where TPartialModel : class
{
return new RenderPartialExpression<TInputModel>(page, page.Get<IPartialRenderer>(), page.Get<IFubuRequest>())
.For(expression);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment