Open shen390s opened 4 years ago
I'd assume that you'd create a page that calls (dynamic-require path 'doc)
(and (dynamic-require path 'metas)
if you need any meta information) for each page that you want to include, then embeds each page's contents.
I'd assume that you'd create a page that calls (dynamic-require path 'doc) (and (dynamic-require path 'metas) if you need any meta information) for each page that you want to include, then embeds each page's contents.
That's basically how I’m doing it in that repo, but it's even faster to skip dynamic-require
altogether and use select-from-doc
etc. directly on the files. As the docs note, using Pollen's functions to retrieve doc/metas from a Pollen source is going to be faster since that way you’ll be taking advantage of Pollen’s cache.
Right, I almost forgot about select-from-doc
.
Such as I want to render https://github.com/otherjoel/try-pollen.git into a single document(such as try-pollen.pdf) to include all chapters of document.