テンプレートが存在しない場合は、コンテンツをレンダリングするだけになるように、このようなことをしたいと考えています。ただし、このようにコーディングできないため、以下のコードは機能しません。
{% if app.request.attributes.get('twig_parent_template') != "" %}
{% extends app.request.attributes.get('twig_parent_template') %}
{% block title "The Title Here" %}
{% endif %}
{% block content %}
Content here
{% endblock %}
このようなことを何とかできないでしょうか?