Hey, I have a small question.
How do I access the global-metadata
from a content-task
?
Also if you're missing a few hands I would love to help, been using perun for almost two years now.
Hello https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L859 loads the meta as part of the paths-fn then the renderer function applies it to the :rendered
meta of each entry.
Okay, so for instance, I have a markdown task which uses the content-task
and sends in a :passthru-fn
which needs access to the global-meta, is there any built in way to access it?
https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L187 according to this the passthru-fn should be receiving global meta as the third argument.
Sorry i misspoke. I meant the :render-form-fn
https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L820 meta is passed to the render-form-fn which is a map with {:entry {} :entries [] :global-meta}
Thank you so much. This made my day.
You’re welcome! The project could use some help. If you have implementation suggestions or bug fixes in mind please create issues and pull requests. Otherwise, more documentation, especially on writing custom tasks, would be very appreciated 🙂
Yes. I would be very happy to, I'll try to add something this weekend. :)