Last active
October 11, 2015 09:18
-
-
Save Buildstarted/3837145 to your computer and use it in GitHub Desktop.
Parrot vs other view engines
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
| new { | |
| Header = "Parrot", | |
| Features = new [] { | |
| "Familiar syntax", | |
| "Extensible output", | |
| "Simple model binding" | |
| } | |
| } |
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
| 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 | |
| } | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>This is Parrot!</title> | |
| </head> | |
| <body> | |
| <h1 id="header"><%:Model.Header%></h1> | |
| <p id="tagname" class="small">All new Asp.Net View Engine</p> | |
| <div id="description" class="rounded-corners"> | |
| <h2>Features</h2> | |
| <ul> | |
| <%foreach(var item in Model.Features) {%> | |
| <li><%:item%></li> | |
| <% } %> | |
| </ul> | |
| </div> | |
| </body> | |
| </html> |
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
| !!! | |
| %html | |
| %head | |
| %title This is Parrot! | |
| %body | |
| %h1#header = Model.Header | |
| %p#tagName.small All new Asp.Net View Engine | |
| %div#description.rounded-corners | |
| %h2 Features | |
| %ul | |
| - foreach (var item in Model.Features) | |
| %li | |
| =item |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>This is Parrot!</title> | |
| </head> | |
| <body> | |
| <h1 id="header">@Model.Header</h1> | |
| <p id="tagname" class="small">All new Asp.Net View Engine</p> | |
| <div id="description" class="rounded-corners"> | |
| <h2>Features</h2> | |
| <ul> | |
| @foreach(var item in Model.Features) { | |
| <li>@item</li> | |
| } | |
| </ul> | |
| </div> | |
| </body> | |
| </html> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>This is Parrot!</title> | |
| </head> | |
| <body> | |
| <h1 id="header">${Model.Header}</h1> | |
| <p id="tagname" class="small">All new Asp.Net View Engine</p> | |
| <div id="description" class="rounded-corners"> | |
| <h2>Features</h2> | |
| <ul> | |
| <li each='var p in Model.Features'>${p}</li> | |
| </ul> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment