Users should be able to specify custom slugs for their posts and pages, which will be an optional header parameter called "slug". If no slug is specified, or is an empty string, then fallback onto the title for slug generation. The Parsable interface should require a slug field. Modify the code accordingly.
see Parser.writeFile method for output file naming.
Additional: refactor to delegate the slug generation to the appropriate class instead of the Parser class. Better OOP.
Users should be able to specify custom slugs for their posts and pages, which will be an optional header parameter called "slug". If no slug is specified, or is an empty string, then fallback onto the title for slug generation. The Parsable interface should require a slug field. Modify the code accordingly.
see Parser.writeFile method for output file naming. Additional: refactor to delegate the slug generation to the appropriate class instead of the Parser class. Better OOP.