client side render using swig templates