mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
builtin html template functions changes
This commit is contained in:
@@ -7,6 +7,6 @@
|
||||
<h1>This is the global layout</h1>
|
||||
<br />
|
||||
<!-- Render the current template here -->
|
||||
{{ yield }}
|
||||
{{ yield . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
<h1>This is the layout for the /my/ and /my/other routes only</h1>
|
||||
<br />
|
||||
<!-- Render the current template here -->
|
||||
{{ yield }}
|
||||
{{ yield . }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
<h1>Page 1 {{ greet "iris developer"}}</h1>
|
||||
|
||||
{{ render "partials/page1_partial1.html"}}
|
||||
{{ render "partials/page1_partial1.html" . }}
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user