added example to pass var to template; remove template setter function