Skip to content

Instantly share code, notes, and snippets.

@emiaj
Created September 18, 2012 05:43
Show Gist options
  • Select an option

  • Save emiaj/3741471 to your computer and use it in GitHub Desktop.

Select an option

Save emiaj/3741471 to your computer and use it in GitHub Desktop.
public class AppHtmlConventions : HtmlConventionRegistry
{
public AppHtmlConventions()
{
//...
Editors
.If(def => // Condition)
.Modify((e, tag) => tag.Attr("value", e.RawValue.ToString()));
//...
}
}
public class AppRegistry : FubuRegistry
{
public AppRegistry()
{
//..
HtmlConvention<AppHtmlConventions>();
//...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment