Skip to content

Instantly share code, notes, and snippets.

@ahjohannessen
Created November 29, 2010 16:03
Show Gist options
  • Save ahjohannessen/720125 to your computer and use it in GitHub Desktop.
Save ahjohannessen/720125 to your computer and use it in GitHub Desktop.
Showcase of odd this.Partial extension method.
<viewdata model="FubuMVC.HelloSpark.Controllers.EarthViewModel" />
<content:title>Down to Earth!</content:title>
<content:header>Where are we now?</content:header>
<h2>Via Spark Partial: <WhereAreWe /></h2>
<h2>Via Fubu Partial:
#this.Partial<LocationViewModel>();
#this.Partial<LocationViewModel>();
</h2>
<div>Using DisplayFor: !{this.DisplayFor(m => m.RawUrl)}</div>
<content:footer>That's right baby!</content:footer>
!{this.LinkTo<WaterInputModel>().Text("Cool her down!")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment