Mercurial > libervia-web
comparison libervia/pages/_browser/template.py @ 1333:3411ec23c389
browser (template): use nunjucks cache
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Aug 2020 09:31:32 +0200 |
parents | c07112ef01cd |
children | 106bae41f5c8 |
comparison
equal
deleted
inserted
replaced
1332:a75d82713a02 | 1333:3411ec23c389 |
---|---|
10 window.templates_root_url, | 10 window.templates_root_url, |
11 { | 11 { |
12 'autoescape': True, | 12 'autoescape': True, |
13 'trimBlocks': True, | 13 'trimBlocks': True, |
14 'lstripBlocks': True, | 14 'lstripBlocks': True, |
15 'web': {'useCache': True}, | |
15 }) | 16 }) |
16 | 17 |
17 nunjucks.installJinjaCompat() | 18 nunjucks.installJinjaCompat() |
18 env.addGlobal("profile", window.profile) | 19 env.addGlobal("profile", window.profile) |
19 env.addGlobal("csrf_token", window.csrf_token) | 20 env.addGlobal("csrf_token", window.csrf_token) |