initial support for client side templating