crempp / mdweb

Markdown based web site framework.
http://mdweb.chadrempp.com/
MIT License
11 stars 1 forks source link

Custom meta-inf fields #33

Open crempp opened 8 years ago

crempp commented 8 years ago

Add support for custom meta-inf fields. I'm thinking a similar approach to the HTML data-* attributes.

Example

/*
Title: Blah
Custom Summary Image: blah.jpg
*/

would parse to nav.meta_inf['custom_summary_image']

crempp commented 8 years ago

I don't think I want to do this at this point. I currently have meta-inf fields being defined with a type (int, string, etc.). I think this is important.

Rather than allow arbitrary fields I think a better way to handle this is to make this part of the plugin system.

I'm moving this to v0.4 where the plugin system will be implemented.

crempp commented 4 years ago

On second thought, strings should be good enough for almost every case. I'll just make all custom fields strings.