This is something that I'm wondering how you solve it:
When building a site, the index template is served with segment 1 empty. If I start an entries loop in a embed, I'll need a conditional to show the specific category for the home page and automated categories for the rest like so:
{if segment_1==""}
{exp:channel:entries category="1"}
All kinds of channel entry stuff
{/exp:channel:entries}
{if:else}
{exp:channel:entries}
All kinds of channel entry stuff
{/exp:channel:entries}
{/if}
The only difference between the first and second loop is the category, which is called automatically in the second loop by the URL segment. Every time I make a change in the first loop, I have to be careful to do that in the second one too. I could put the 'entry stuff' in a snippet, but I like to work with files, which snippets do not allow.
So how would you approach this? Thanks!