Commit c9db2d496392e71ab910cacf220495c37c3bb747

Thomas de Grivel 2024-10-13T11:56:12

fx in test_httpd

diff --git a/httpd/fx/db/fx.facts b/httpd/fx/db/fx.facts
index f5ffc63..0e7d551 100644
--- a/httpd/fx/db/fx.facts
+++ b/httpd/fx/db/fx.facts
@@ -9,3 +9,4 @@ add {"fx/img/toast.128.png", "salut", "raphael"}
 add {"fx/img/toast.128.png", "tag", "picture"}
 add {"fx/img/toast.128.png", "tag", "toast"}
 add {"fx/img/toast.128.png", "why_toast", "because_it_works"}
+add {"fx/", "tag", "software"}
diff --git a/test/httpd/app/templates/layout.html.ekc3 b/test/httpd/app/templates/layout.html.ekc3
index 2ce18c6..03a4770 100644
--- a/test/httpd/app/templates/layout.html.ekc3
+++ b/test/httpd/app/templates/layout.html.ekc3
@@ -15,5 +15,6 @@
   <body>
     <%= raw nav %>
     <%= raw page %>
+    <%= raw footer %>
   </body>
 </html>
diff --git a/test/httpd/app/views/layout_view.kc3 b/test/httpd/app/views/layout_view.kc3
index 672aada..8c76e11 100644
--- a/test/httpd/app/views/layout_view.kc3
+++ b/test/httpd/app/views/layout_view.kc3
@@ -2,8 +2,12 @@ defmodule LayoutView do
 
   def template = EKC3.load("app/templates/layout.html.ekc3")
 
+  def template_footer = EKC3.load("app/templates/footer.html.ekc3")
+
   def template_nav = EKC3.load("app/templates/nav.html.ekc3")
 
+  def footer = EKC3.render(template_footer)
+
   def nav = EKC3.render(template_nav)
 
   def render = fn (title, page) {
diff --git a/test/httpd/fx b/test/httpd/fx
new file mode 120000
index 0000000..c25bddb
--- /dev/null
+++ b/test/httpd/fx
@@ -0,0 +1 @@
+../..
\ No newline at end of file