public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Passing a metadata file, as a value for a specific metadata value.
@ 2021-07-20 16:59 Miguel Alejandro Salgado Zapién
  0 siblings, 0 replies; only message in thread
From: Miguel Alejandro Salgado Zapién @ 2021-07-20 16:59 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1145 bytes --]

I'm looking for a way to pass a _metadata file_, but instead of _directly_ 
merging all metadata that is located on the _document root_, allow the user 
to specify something like this `--metadata-file key=metadata-file.yaml`.

My current workaround is a `Makefile` that reads the metadata file and adds 
all the metadata values as flags for the `pandoc` command. 

The _simplest_ use case I can think of (that I'm trying to solve in my make 
file), is to request a _json_ file with the version control data for a 
given file, and add them under a variable named _git_, such that we have in 
accessible in the filters and template the values as `git.status`, 
`git.commit`, etc...

Would this be something that fits with the project?


-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e87d1660-e7cb-44bc-a1f4-7590f0386d17n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1529 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-20 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20 16:59 Passing a metadata file, as a value for a specific metadata value Miguel Alejandro Salgado Zapién

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).