Last active
March 15, 2017 17:01
-
-
Save gabesullice/2637e6d9bf85d13b596e35c10f9e84a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// parent | |
{% set defaults = { | |
'footer': '@fph-components/regions/footer/footer.twig' | |
} %} | |
{% set overrides = { | |
'footer-tertiary': '@fph-components/regions/footer/footer--tertiary.twig' | |
} %} | |
{% | |
include defaults['footer'] with { | |
content: page.footer_tertiary, | |
overrides: overrides | |
} only | |
%} | |
// child | |
{% set defaults = { | |
'footer-tertiary': '@fph-components/regions/footer/footer.twig' | |
} %} | |
{% include overrides['footer-tertiary'] ?? defaults['footer-tertiary'] %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment