Sir you are so so helpful. It worked. So simply. Thanks so much.
I placed this code at the bottom of the first file in my index.ptree and
then I removed the file refrence from the index.ptree. Worked perfect. Had
to use build path because windows is too awesome.
◊(define fileList
Thanks so much. I'll get working on it to see how it pans out.
pagetree->list looks like exactly what I need and I think 'get-pagetree'
will be useful too.
Thanks again.
On Thursday, February 14, 2019 at 1:28:10 PM UTC-5, Matthew Butterick wrote:
>
> `require` is a compile-time command, but
`require` is a compile-time command, but `for-each` doesn't happen until run
time. So there is a timing mismatch.
I think you probably want `dynamic-require`, which lets you import identifiers
at run time:
◊(map (λ (fileName) (dynamic-require fileName 'doc)) fileList)
As for generating a list
I know this is an old post but I'm hoping anyone can help. I'm trying to
see is if this process can be automated for any files listed in the
index.ptree. I'm thinking the code should look something like this:
◊(define fileList (file->list index.ptree)) ;Not sure how to get the exact
path here
This works! Thanks a lot!
Le dim. 24 sept. 2017 à 21:53, Matthew Butterick a écrit :
> If you use the submodule technique, you need to `provide` the identifiers
> from inside the submodule, then you also need to insert them in the body of
> the source file:
>
> #lang pollen
>
>
If you use the submodule technique, you need to `provide` the identifiers from
inside the submodule, then you also need to insert them in the body of the
source file:
#lang pollen
◊(module art1-submod racket/base
(require "article1.html.pm")
(provide doc))
◊(require (prefix-in art1:
> On Sep 23, 2017, at 3:29 AM, Karim Chellaoui wrote:
>
> I'm new to Pollen, I read the tutorial but couldn't find the way to apply
> this answer. I'm getting confused: how to effectively insert submodule
> ch1-submod in the main file? I tried different functions but it
Hello, everyone.
If there are way to combine multiple source pages to generate single output.
Say, we have chapter1.poly.pm, chapter2.poly.pm
The use case - HTML output (chapter1.html. chapter2.html) vs PDF output
(single output).
The simple solution that comes to mind - just combine the