alternative template variable handoff

previous version also seemed to build locally, but maybe will fix
gh-pages issue?