I’m not really sure what you’re specifically trying to do without more information but you should consider setting placeholders in your snippet and then putting the placeholder in your template where the various content needs to go.
Use the following code to set the placeholder in your snippet code (first parameter is the placeholder name, second is the output you want to assign to that placeholder - obviously change to placeholder name and data to your needs) :
$modx->setPlaceholder('myPlaceholder', $myContent);
Call your snippet right at the top of the template. Then, in your template, use the following to define where that placeholder data gets inserted into the template: