Created
August 20, 2014 04:29
-
-
Save darrenshrwd/dbe0452440b55d0013c9 to your computer and use it in GitHub Desktop.
faster_layout
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>@ViewBag.Title</title> | |
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /> | |
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script> | |
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script> | |
... | |
... | |
</head> | |
<body> | |
<p>Before Body</p> | |
@if (IsSectionDefined("AsyncBody")) { | |
var sb = ((StringWriter)ViewContext.Writer).GetStringBuilder(); | |
Response.Write(sb); | |
Response.Flush(); | |
sb.Length = 0; | |
@RenderSection("AsyncBody"); | |
} | |
else { | |
@RenderBody(); | |
} | |
<p>After Body</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment