DarthFubuMVC/htmltags — pull request #32 by schotime (2012-07-14 03:59:12+00:00)
Title: Implement Parent property and ability to render from upmost parent

Adds the ability to return the inner tag but render from the top if needed. Useful when using Html.Input(x=>x.Name), because you can now modify the input in the view, but then it will still render the html that wraps the Input.

This is how it would be used. Say this is your Html Convention that generates your inputs.

``` cs
public HtmlTag Input()
{
var tag = new HtmlTag("div").AddClass("input-wrapper");
var input = tag.Add("input").NoClosingTag().RenderFromTop();
return input;
}
```
Then in your view you could have something like this.

``` cs
@this.Input(x=>x.Name).AddClass("test")
```
This would then render

``` html

```