Re-implemented split_list with template tag sugar.