New 'magic' method for setting of template variables