Last active
December 11, 2015 06:48
-
-
Save jmarnold/4561764 to your computer and use it in GitHub Desktop.
Useful bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<use namespace="FubuCore" /> | |
<use namespace="FubuMVC.Core.Assets" /> | |
<use namespace="FubuMVC.Core.UI" /> | |
<use namespace="System.Linq" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<bindings> | |
<element name="Stylesheet">#this.Asset('@href');</element> | |
<element name="Script">#this.Asset('@src');</element> | |
<element name="Scripts">this.WriteScriptTags()</element> | |
<element name="Styles">this.WriteCssTags()</element> | |
<element name="Image">this.ImageFor('@src')</element> | |
<element name="Partial">this.Partial<@model>()</element> | |
<element name="Form"> | |
<start>this.FormFor<@model>()</start> | |
<end>this.EndForm()</end> | |
</element> | |
<element name="Label">this.LabelFor(m => m.@property)</element> | |
<element name="Display">this.DisplayFor(m => m.@property)</element> | |
<element name="Input">this.InputFor(m => m.@property)</element> | |
<element name="Edit">this.Edit(m => m.@property)</element> | |
</bindings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment