Closed antitoxic closed 9 years ago
Even more:
Don't use context_processors because they are not very pythonic, they are not explicit template dependencies.
Use tags even just simple tag that just return settings.SOME_SETTING
It's currenly how it's developed and so far there's no hiccups.
Already the norm. The template tags were moved to the theme directory as they are theme-specific.
The main theme for signali uses web-component-like frontend.
Web-components themselves are quite encapsulated. Some of them depend on server-data.
Consider extracting the html in templatetag. Example: https://github.com/obshtestvo/obshtestvo.bg/blob/user_invitation/web/templatetags/dev.py#L19
An argument against is that the html in that templatetag is fixed and can't be changed from the template of the loading page. Parameters can be passed to be used with conditional blocks, but this doesn't feel flexible.