Move anchor naming logic from templates to prepareShowcaseData