Pass locals when rendering strings.

When using a engine for content that allows template variable handling, it's appropriate to have access to all locals and other variables that a layout usually receives.