Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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