Hello everyone —

Is there a way to access a pollen file's source path directly in the 
pollen.rkt? 

I know it's possible to pass it in using (current-contract-region), but 
that's a bit unwieldy.

Example: you define an ◊image function in pollen.rkt that pulls in images 
from different directories based on which chapter the current pollen source 
belongs to. You'd rather not have to call 
◊image[(current-contract-region)]{hamster.jpg} because it ruins the 
aesthetic grace of your pollen file ;) 

Is there a module I can require in pollen.rkt that will help me out?

Any suggestions warmly appreciated!

-A

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to