comparison libervia/pages/_browser/template.py @ 1509:106bae41f5c8

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:11 +0200
parents 3411ec23c389
children
comparison
equal deleted inserted replaced
1508:ec3ad9abf9f9 1509:106bae41f5c8
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 'web': {'use_cache': True},
16 }) 16 })
17 17
18 nunjucks.installJinjaCompat() 18 nunjucks.installJinjaCompat()
19 env.addGlobal("profile", window.profile) 19 env.addGlobal("profile", window.profile)
20 env.addGlobal("csrf_token", window.csrf_token) 20 env.addGlobal("csrf_token", window.csrf_token)