Layout and base index swig template