Skip to content

davidregis/Parrot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

##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>

About

All new View Engine for Asp.Net MVC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published