Thanks for the replies guys.
I prefer to keep [[snippets]] or {{chunks}} on their own line to make it easier to read the code, but your suggestion worked like a charm dev_cw.
Calling the snippet at the start of the chunk still produced the blank line.
Heliotrope, your suggestion got me think about setting the placeholder with a plugin, so I came up with:
//with checkbox for 'OnWebPageInit' ticked. 'OnWebPagePrerender' didn't seem to work.
$e = &$modx->Event;
switch($e->name)
{
case 'OnWebPageInit':
$modx->setPlaceholder('templatePath', 'assets/templates/template_name/');
break;
}
If you’re not into switches
if ($e->name == 'OnWebPageInit')
{
$modx->setPlaceholder('templatePath', 'assets/templates/template_name/');
}
-------- or
$modx->setPlaceholder('templatePath', 'assets/templates/template_name/');
$mySampleChunk = $modx->getChunk('mySampleChunk');
echo $mySampleChunk;
Thanks for the feedback guys. So many ways to do something in MODx

, really shows what a powerful and flexible framework it is!