Skip to main content

split_exercise_path

Function split_exercise_path 

Source
pub(super) fn split_exercise_path(
    path: &str,
) -> Result<(ExercisePart, String), EditError>
Expand description

Splits /tasks/<task id>/rest or /review_instructions/rest into the part and the page-content path of the rest, "" for the part’s top level.