support: add some hooks for templaters