add siteconfig and context object to template data, make some methods chainable