slicing HTML into caramel templates