Skip to content

Instantly share code, notes, and snippets.

@gabesullice
Last active March 15, 2017 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabesullice/2637e6d9bf85d13b596e35c10f9e84a5 to your computer and use it in GitHub Desktop.
Save gabesullice/2637e6d9bf85d13b596e35c10f9e84a5 to your computer and use it in GitHub Desktop.
// 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