use swig that supports renderFile opts