Skip to content

Slot/fill names must be strings change #270

Answered by lemontheme
timothyis asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there, sorry to hear this change is causing you problems!

What you're observing is indeed the result of a conscious decision to treat the first argument to slot and fill tags as a variable rather than as a literal identifier.

It was something that came up in the course of PR #221, where you'll find a record of the decision making process. I'll try to give a summary here.

  • With the introduction of fill tags, the 'slots are like blocks' analogy broke down. Slots no longer override slots on some parent template. Instead, the new fill tags co-ordinate with slot tags in a way that no longer resembles the inheritance-based approach of block tags. Mimicing the block way of parsing tag argumen…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@timothyis
Comment options

Answer selected by JuroOravec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants