qsubsec is a simple template language system for creating Grid Engine job scripts. The source can be found on github.