Skip to content

Instantly share code, notes, and snippets.

@Yoshi325
Created October 29, 2015 15:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Yoshi325/3d00c6362081bab4dddb to your computer and use it in GitHub Desktop.
Three-Pass Rendering Not Working, Nancy.ViewEngines.Spark, Spark, Example
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>NancySelfHost1</title>
<style type="text/css">
body { text-align: center; }
</style>
</head>
<body>
This goes before the view.
<img src="/Content/nancy-logo.png" alt="Nancy Logo" />
<br/>
This view was rendered using the SparkViewEngine
</body>
</html>
<img src="~/Content/nancy-logo.png" alt="Nancy Logo"/>
<br/>
This view was rendered using the SparkViewEngine
<use master="html"/>
This goes before the view.
<use content="view"/>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>NancySelfHost2</title>
<style>
body { text-align: center; }
</style>
</head>
<body>
<use content="view"/>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment