render the view with swig