I'm trying to do a simple thing(at least for common frameworks) using Luminus and Selmer template but I can’t find a way to do it. I would like just to pass values to the base template, something like this:
file: home.html
{% extends "base.html" {:user {{ user }} } %}
{% block content %}
...
{% endblock %}
I know that we can do it using render a file, like this
(render-file "html/base.html" {:user user})
But it not looks right, it looks like a weird workaround.
My idea actually is to make some global variables to access anywhere of application like user session, but I didn’t find it in luminus documentation