Localized code into jinja macros.