{% set ext = path.rsplit('.', 1)[-1].lower() if '.' in path.rsplit('/', 1)[-1] else '' %} {% set mode = 'yaml' if ext in ('yml', 'yaml') else ('jinja2' if ext == 'j2' else ('properties' if ext in ('ini', 'cfg', '') else 'text/plain')) %}
{{ path }} Ctrl+S — сохранить