{% set theme = construct.theme or "whitelabel" %} {% set _up_target = request.headers.get('X-Up-Target', '') %} {% set _is_partial = _up_target and 'body' not in _up_target and 'html' not in _up_target %} {% set layout = "themes/" + theme + "/style/base_full.html" if not _is_partial else "themes/" + theme + "/style/base_partial.html" %} {% extends layout %}