Skip to content
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

Twig extension include once #2918

Merged
merged 10 commits into from Oct 10, 2019

Conversation

@carakas
Copy link
Member

carakas commented Oct 3, 2019

Type

  • Feature

Pull request description

This adds a function to twig to only include a template once
This is for instance handy for the media library since this means that you don't need to include that helper template everywhere anymore

@carakas carakas added this to the 5.7.0 milestone Oct 3, 2019
@carakas carakas requested a review from forkcms/core-contributors Oct 3, 2019
## Functions

### Backend
@todo complete this

This comment has been minimized.

Copy link
@carakas

carakas Oct 3, 2019

Author Member

this can be done later, maybe something for Hacktoberfest

- `showbool(string|bool $status, bool $reverse = false)`: shows a checkbox to indicate the boolean value of the variable, also works with Y,y,1,N,n and 0

## Filters
@todo complete this

This comment has been minimized.

Copy link
@carakas

carakas Oct 3, 2019

Author Member

this can be done later, maybe something for Hacktoberfest

carakas added 3 commits Oct 9, 2019
@carakas

This comment has been minimized.

Copy link
Member Author

carakas commented Oct 10, 2019

reviewed in #2924

@carakas carakas merged commit 1d2424b into forkcms:master Oct 10, 2019
3 checks passed
3 checks passed
Scrutinizer Analysis: No new issues – Tests: passed
Details
continuous-integration/styleci/pr The analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@carakas carakas deleted the justcarakas:twig-extension-include_once branch Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.