This comes with a major shift in the way brut builds sites.
Instead of looking for markdown posts in a /posts directory and HTML pages in a /pages directory, it traverses the tree (using klaw) and builds all Markdown and HTML files, irrespectively of their location or format. If a file is in Markdown, it is processed to HTML before being processed exactly like other HTML files.
This has a few benefits:
no need to put posts into a specific directory, and no need to write them in Markdown necessarily, or stick to HTML for pages
this stays more true to the technologies: Markdown is a superset of HTML, and it is now treated as such. Any Markdown content will simply be processed to HTML first, and will then be handled as HTML
This comes with a major shift in the way brut builds sites.
Instead of looking for markdown posts in a
/posts
directory and HTML pages in a/pages
directory, it traverses the tree (usingklaw
) and builds all Markdown and HTML files, irrespectively of their location or format. If a file is in Markdown, it is processed to HTML before being processed exactly like other HTML files.This has a few benefits: