index template with vars