You also must define before and after render hooks in what's returned here (see my PR for compile for more info.)