Skip to main content

create_page

Function create_page 

Source
pub fn create_page(
    title: &str,
    folder: &str,
    state: &AppState,
) -> Result<PageData, LoreError>
Expand description

Create a new page. Creates the .md file on disk.

When folder is non-empty, creates the file inside that subfolder. The folder must be a relative path within the vault — absolute paths and .. components are rejected.