[[FOO]]
return '{{FOO}}';
return '{{_SNIPPET NAME HERE_}}';
// also would work well with $modx->getChunk
return '{{'.$name.'}}';
Just checked it out and you can use: $modx->currentSnippet
It’s your lucky dayJust checked it out and you can use: $modx->currentSnippet
