Adding swig templating