need to access object and template
using ruby 1.9 syntax