Use directive head?
janbrohl opened this issue · 3 comments
janbrohl commented
Not sure if that's the correct name but to me it would seem natural to use the part in the directive head for something like one of these:
.. datatemplate:json:: path/to/file.json
.. datatemplate:json:: {"literal":"json"}
dhellmann commented
Yeah, I think I looked at that way back at the beginning and thought being explicit would be easier to deal with. I'm definitely open to looking at it again, though, if you want to think through what makes the most sense.
Inlining a filename seems more useful to me, but should it be the data or the template?