Hash :
0f2052cb
Author :
Thomas de Grivel
Date :
2025-09-03T12:18:20
faster rendering in test/httpd
## kc3
## Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software granted the above
## copyright notice and this permission paragraph are included in all
## copies and substantial portions of this software.
##
## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
## THIS SOFTWARE.
require EKC3
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 render = fn (slug, title, page, url) {
nav = EKC3.render(LayoutView.template_nav)
footer = EKC3.render(LayoutView.template_footer)
EKC3.render(LayoutView.template)
}
end