pub fn parse_page(input: &str) -> StringExpand description
Match page definitions.
Each page is denoted with two at symbols, followed by the name of the page. The page can also have an optional second argument (separated by a semicolon) which accepts the “visible” value; marking the page as visible by default.
To close a page (after you’re done with the page’s content), just put two at symbols with nothing else on the line.
You’re able to put content AFTER the page closing line. This allows you to have persistant content which is shared between every page. Only content within pages is hidden when navigating to another page. This means everything in the entry that isn’t part of a page will remian throughout navigations.
§Example
@@ home; visible
this is the homepage which is shown by default!
@@
@@ about
this is the about page which is NOT shown by default! a link with an href of "#/about" will open this page
@@