Templated version of sketchesmodules.cpp