comparison default/base/base.html @ 82:6ba0129a9a4e

base: don't use default flag for common script (flags now default to "defer" following last changes in backend)
author Goffi <goffi@goffi.org>
date Wed, 03 Jan 2018 01:12:16 +0100
parents d1741c2f3e9d
children b2ef34e602cf
comparison
equal deleted inserted replaced
81:3eec00136867 82:6ba0129a9a4e
1 {% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #} 1 {% set embedded = True %} {# embedded is set to avoid including base.html several times if a generic page is included (e.g. blog/articles.html) #}
2 {% import 'components/common.html' as component with context %} 2 {% import 'components/common.html' as component with context %}
3 {{ script.include('common') }} {# common.js has many useful functions, so we import it here #} 3 {{ script.include('common', '') }} {# common.js is a common script, so it's useful to import it here #}
4 <!DOCTYPE html> 4 <!DOCTYPE html>
5 <html> 5 <html>
6 <head> 6 <head>
7 <meta charset="utf-8"> 7 <meta charset="utf-8">
8 <meta name="viewport" content="width=device-width, initial-scale=1"> 8 <meta name="viewport" content="width=device-width, initial-scale=1">