Skip to content

Fix block default rendering in extends templates#332

Open
seedship wants to merge 1 commit into
pantor:mainfrom
seedship:main
Open

Fix block default rendering in extends templates#332
seedship wants to merge 1 commit into
pantor:mainfrom
seedship:main

Conversation

@seedship

@seedship seedship commented Apr 24, 2026

Copy link
Copy Markdown

There is a bug in inja where given a template:

skeleton:

{% block data %}some data{% endblock %}

using_skeleton:

{% extends "skeleton" %}

If the subconfig does not define anything, it will be generated as empty instead of using the default value. You would expect inja processing skeleton to generate:

some data

But instead it is just an empty file. This fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant