scriptorium/parser
Parsing reads the input files into the database.
Values
pub fn default_parse(
config: config.Configuration,
) -> Result(database.Database, config.ParseError)
The default parser.
pub fn parse_menu(
db: database.Database,
file: String,
config: config.Configuration,
) -> Result(database.Database, config.ParseError)
Parse the menu from the given file into the database.
pub fn parse_pages(
db: database.Database,
path: String,
) -> Result(database.Database, config.ParseError)
Parse pages from the given path into the database.
pub fn parse_posts(
db: database.Database,
path: String,
) -> Result(database.Database, config.ParseError)
Parse posts from the given path into the database.