mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
Add .NET Core MVC with Templates vs Iris MVC with Templates
https://hackernoon.com/go-vs-net-core-in-terms-of-http-performance-7535a61b67b8 Former-commit-id: dabf2d23a2f8a341ded9fc87ced82300855e26a6
This commit is contained in:
50
_benchmarks/iris-mvc-templates/views/shared/layout.html
Normal file
50
_benchmarks/iris-mvc-templates/views/shared/layout.html
Normal file
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{.Title}} - iris_mvc_templates</title>
|
||||
|
||||
<link rel="stylesheet" href="/public/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="/public/css/site.min.css" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="/" class="navbar-brand">iris_mvc_templates</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/about">About</a></li>
|
||||
<li><a href="/contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container body-content">
|
||||
<!-- Render the current template here -->
|
||||
{{ yield }}
|
||||
<hr />
|
||||
<footer>
|
||||
<p>© 2017 - iris_mvc_templates</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="/public/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/public/lib/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<script src="/public/js/site.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user