Skip to content

Instantly share code, notes, and snippets.

@CoreyKaylor
Created December 9, 2012 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CoreyKaylor/4243462 to your computer and use it in GitHub Desktop.
Save CoreyKaylor/4243462 to your computer and use it in GitHub Desktop.
Razor Hello Templates
<p>
My partial
</p>
<!DOCTYPE html>
<html>
<head>
<title>title</title>
</head>
<body>
<header><h1>Hello from Layout</h1></header>
<div>
@RenderBody()
</div>
</body>
</html>
using FubuMVC.Core;
using RazorSample.Features.Home;
namespace RazorSample
{
public class HelloWorldRegistry : FubuRegistry
{
public HelloWorldRegistry()
{
Routes.HomeIs<HomeInputModel>();
}
}
}
@model RazorSample.Features.Home.HomeViewModel
@{
_Layout = "Application";
}
Hello World!
@this.Include("mypartial")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment