Is template inheritance working in sgte?
I'm trying to break Tobbe's main.sgte file apart, and I have created
login.sgte as a separate file. So, in main.sgte, I have this:
<html>
...
$login()$
...
</html>
I get the following:
[SGTE Warning: template: attribute - key 'login()' not found on line
145]
and I get the same thing, when I tried $login.sgte()$
I'm kinda new around Erlang, Eblog, and SGTE, so just wondering what
the status of inheritance is.
Cheers,
Brad
$include login$
and then you pass the compiled template to renderer along with other data.
E.g.
{ok, Login} = sgte:compile_file("login.sgte")
{ok, Main} = sgte:compile_file("main.sgte")
sgte:render(Main, [{login, Login}, ...])
cheers,
filippo