Started adding filename attribute to template contexts. refs #414