3 ms·
Askama looks interesting, though the inheritance is a bit underdocumented. Ideally, I'd imagine just making a "Global<T>" struct, where I insert the current pa
by zaarn 4y ago
Askama looks interesting, though the inheritance is a bit underdocumented.
Ideally, I'd imagine just making a "Global<T>" struct, where I insert the current page context like so "Global<LoginPage>" to get the final template. Though by the looks, it sounds more like LoginPage will simply have to have all the global context available via some attribute like "LoginPage.global".