Use swig to render templates