adidoks
adidoks copied to clipboard
Macros should not rely on outside variables
Macros are meant to be pure functions (args) -> String
. The fact that you can access config
etc from inside is a pretty big bug in Tera and will very likely get fixed soonish. You should pass explicitly the arguments you need.
You're right. I will make some updates next.
I was not aware of this, will have to work on fixing abridge as well.
Hopefully zola build
and zola serve
will post some warning message about the intended functionality, otherwise users of many themes will be very surprised and scrambling to fix things.
I have added this to my todo list and will work on it soon.