Add include example
This commit is contained in:
19
examples/include/tmpls/home.html
Normal file
19
examples/include/tmpls/home.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<html>
|
||||
#include("head.html")
|
||||
|
||||
<body>
|
||||
#include("header.html")
|
||||
|
||||
<section class="hero is-fullheight-with-navbar">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<p class="title">Hello, #(name)!</p>
|
||||
<p class="subtitle">This is a demo of the Salix template engine.</p>
|
||||
<a class="button is-link is-rounded" href="/about">About →</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
#include("footer.html")
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user