Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Slot append & prepend #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

Chekote
Copy link

@Chekote Chekote commented Mar 14, 2011

No description provided.

@fabpot
Copy link
Member

fabpot commented Mar 14, 2011

You can achieve the same by including the parent value of the slot.

@Chekote
Copy link
Author

Chekote commented Mar 14, 2011

The parent value would only work if I were using templates, correct? In my scenario, I am using the slot helper.

To give a somewhat abstract example:

  • I have a base template that defines a slot for CSS files imports
  • The base template also has multiple slots for templates that require their own CSS files
  • The required CSS files are not known until runtime, based on some dynamic criteria
  • The sub templates are using this append method to add the required number of CSS imports to the CSS slot

I don't see any other way to do this. Let me know if I should just take this discussion to the google group.

Thanks

jderusse pushed a commit to jderusse/symfony that referenced this pull request Mar 30, 2020
Add Laravel weak comparison encryption failure exploit
This pull request was closed.
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.

2 participants