alfredbaudisch / pardall_markdown

Reactive publishing framework, filesystem-based with support for Markdown, nested hierarchies, and instant content rebuilding. Written in Elixir.
Apache License 2.0
115 stars 7 forks source link

Parsing layouts on the fly #66

Open absowoot opened 1 year ago

absowoot commented 1 year ago

Layouts need to be built inside of your project before they can be used to display the markdown content. This means that if you have a new layout, you need to push a new version of your app.

Would it be possible to parse heex (or other html template) files in the "_layouts" directory automatically and then use a "layout" attribute to assign the layout in the .md file (like in Front Matter)? I think the attributes would need to be added to the assigned on the fly so the template can make use of any custom attributes.