Change register template into jinja