Created
March 4, 2013 07:40
-
-
Save joeriks/5080682 to your computer and use it in GitHub Desktop.
Add custsom tags to razor
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
this: | |
@helper CustomTag(InnerTemplate inner) { | |
<div class="this"> | |
<div class="that"> | |
@inner | |
</div> | |
</div> | |
} | |
makes me able to do this: | |
<h1>cool:</h1> | |
<CustomTag> | |
<i>with contents</i> | |
</CustomTag> | |
makes sense? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment