Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
All new View Engine for Asp.Net MVC
C# Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
LICENSE.md
README.md

README.md

Sample View Model

return View(new {
  Header = "Parrot",
  Description = "Something something about Parrot",
  Features = new [] {
    "Familiar syntax",
    "Extensible output",
    "Simple model binding"
  }
});

Sample Template

doctype
html {
  head > title > "This is Parrot!"
  body {
    h1#header > @Header
    p#tagname.small > "All new Asp.Net View Engine"
    div#description.rounded-corners {
      h2 > "Features"
      ul(Features) > li > @this
    }
  }
}

Html Output

<!DOCTYPE html>
<html>
  <head>
    <title>This is Parrot!</title>
  </head>
  <body>
    <h1 id="header">Parrot</h1>
    <p class="small" id="tagname">All new Asp.Net View Engine</p>
    <div class="rounded-corners" id="description">
        <h2>Features</h2>
        <ul>
          <li>Familiar syntax</li>
          <li>Extensible output</li>
          <li>Simple model binding</li>
        </ul>
    </div>
  </body>
</html>
Something went wrong with that request. Please try again.