This enables general templating capabilities, in addition to environment variable access. Closes #3974.