Hey there,
I’m running EE 2.2.1, and have one template which is conditionally pulling in one of several snippets, depending on different factors. For example, the template looks something like:
...
{if segment_1 == "products"}{snippet_one}{/if}
{if segment_1 == "services"}{snippet_two}{/if}
{if channel == "MyChannel"}{snippet_three}{/if}
...
For weeks, this has seemingly worked just fine, and it only displays the proper snippet based on the conditionals.
However, I was just adding some javascript to one of my snippets, and had an error in my syntax, which broke the rendering of that page. The thing is, it produced the same error on ALL of the pages using this template, even those that weren’t calling that one bad snippet.
This leads me to believe that regardless of the conditionals above, it’s at least reading ALL of the snippets, even if it’s not showing them…
Any clarification on the parse order between snippets and their surrounding conditionals?
Tx!