Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

frontend: migrate all templates to Jinja2 #377

Merged
merged 1 commit into from
Oct 22, 2018

Commits on Oct 19, 2018

  1. frontend: migrate all templates to Jinja2

    All templates (web, email, txt) were migrated to Jinja2, except those in
    'squad/templates/django' due to lack of support of Django Rest Framework
    along with Jinja. Bellow are a few items worth mentioning:
    
     - migrated all .html templates to .jinja2
       using Jinja2's syntax
     - kept templatetags, decorating them as global functions
       and filters, following Jinja2 guidelines
     - adjusted settings.py to work properly with Jinja2
     - created squad/jinja2.py, that loads default filters
       from Django and load squad's custom templatetags
     - left rest_framework/api.html and squad/_user_menu.html
       unchanged since Django Rest Framework does NOT support
       jinja2, nor it's going to be supporting (didn't see any)
       issue addressing that on their repo to date
     - some extra if's had to be added given that django sometimes
       fail silently (tag 'with') whereas jinja doesn't. Found several
       templates that were crashing after migrated to Jinja
    chaws committed Oct 19, 2018
    Configuration menu
    Copy the full SHA
    dfe3d0e View commit details
    Browse the repository at this point in the history