gem scaffold + code extracted from main mustache repo