<div dir="ltr">Hi Matthew<div><br></div><div>Thanks for clarifying, and the suggestion.</div><div><br></div><div>I'll give a bit more detail on my use-case, as a more concrete example for any future enhancement, and in case there's an easier workaround than using scribble/render, or my current hack (below).</div>

<div><br></div><div>Use-case: Consider a kind of mail-merge, in which I have a single scribble "template" file, and multiple json files, each containing the data for producing a single instance of the pdf.</div>

<div><br></div><div>My current workaround is to employ a wrapper scribble file, wrapper.scrbl</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<font face="courier new, monospace">#lang scribble/base<br>@include-section["template.scrbl"]</font></blockquote><div><br></div><div>which I copy to the name of each json file -- e.g input.json motivates a copy called input.json -- and use the filename commonality to suck in the relevant data.</div>

</div><div><br></div><div>E.g. Say the data is in input.json:</div><div><br></div><div><b>> cp wrapper.scrbl input.scrbl</b></div><div><b>> scribble --pdf --dest-name output.pdf input.scrbl</b></div><div><br></div>
<div>
which suffices, but a more elegant solution would be nice.</div><div><br></div><div>Naturally I'd prefer to be able to do something like</div><div><br></div><div><b>> </b><b>scribble --pdf --dest-name output.pdf template.scrbl -- --input-name input.json</b></div>

<div><b><br></b></div><div>although a single flag would suffice in my use-case. E.g</div><div><br></div><div><b>> </b><b>scribble --pdf </b><b>--json input.json </b><b>--dest-name output.pdf template.scrbl</b></div><div>

<b><br></b></div><div><b><br></b></div><div>Thanks</div><div><br></div><div>Dan</div></div>