Skip to content

Instantly share code, notes, and snippets.

@marcusoftnet
Created August 20, 2011 18:49
Show Gist options
  • Save marcusoftnet/1159487 to your computer and use it in GitHub Desktop.
Save marcusoftnet/1159487 to your computer and use it in GitHub Desktop.
Trying out Razor and Nancy
@IList<Person> model = (IList<Person>)Model;
<!DOCTYPE HTML />
<html>
<head></head>
<body>
<ul>
@foreach (Person p in Model)
{
<li>@p.name</li>
}
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment