commit c33e5244dda18bf353106d7461046f61a929eb2d
parent 5fc1cc3c62b057fa5e6cb38d4b01241d2e1dc0c2
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date: Wed, 24 Oct 2018 13:40:15 -0400
Test etlua template engine.
Diffstat:
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/content/a-propos.json b/content/a-propos.json
@@ -3,6 +3,6 @@
"datetime":"00:00:00",
"id":"tag:hugo.soucy.cc,2017-03-16:2017/03/a-propos",
"shortlink":"25",
- "template":"default",
+ "template":"test",
"title":"À propos de ce site Web"
}
\ No newline at end of file
diff --git a/templates/partials/head.etlua b/templates/partials/head.etlua
@@ -0,0 +1,3 @@
+<head>
+ <title>sdkjlsjdkjlsdjkljskl</title>
+</head>
diff --git a/templates/test.etlua b/templates/test.etlua
@@ -0,0 +1,9 @@
+<html>
+ <% etlua.render("templates.partials.head") %>
+
+ <body>
+ Hello <%- title %>
+
+ <%- content %>
+ </body>
+</html>