flask-material-dashboard icon indicating copy to clipboard operation
flask-material-dashboard copied to clipboard

HTML title is not being set correctly.

Open Mudpuppy12 opened this issue 5 months ago • 1 comments

In the current code and example the title of the browser tab says:

| Flask Material Dashboard <p>I believe this is a bug</p>

Mudpuppy12 avatar Jun 24 '25 17:06 Mudpuppy12

Why this happens in Flask 3.0:

In Flask 3.0, Jinja2 has stricter rules about block inheritance across included templates. When you use {% include %}, it processes that template immediately, but blocks defined in child templates that extend the base template aren't available during the include processing. By placing the title block directly in the base template, the inheritance chain remains intact.

Mudpuppy12 avatar Jun 25 '25 16:06 Mudpuppy12