Cobble together some disturbing Broccoli business for template compilation