Created
February 14, 2012 16:49
-
-
Save Buildstarted/1828058 to your computer and use it in GitHub Desktop.
Model hack for cshtml outside of mvc
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
@functions | |
{ | |
public ConsoleApplication16.CoolModel Model { get; set; } | |
} | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
@if (string.IsNullOrEmpty(Model.Cat)) | |
{ | |
@:Cool Cat | |
} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment