> Values on the right-hand side of `define-meta` can't be expressions or 
> variables imported from elsewhere. They can only be raw datums.

Thanks, that makes sense.

I guess what I'm asking, though, is whether it's possible to use `define-meta` 
in a non-pollen file (i.e., in a racket file).

That would let me set the raw datum I need. I saw that it's possible to read a 
meta from a non-pollen file and thought it might also be possible to write a 
meta from that sort of file. Is that possible?

-------- Original Message --------
On Apr 10, 2019, 1:22 PM, Matthew Butterick wrote:

Values on the right-hand side of `define-meta` can't be expressions or 
variables imported from elsewhere. They can only be raw datums. This is a 
deliberate limitation that goes back early in Pollen history, when folks 
decided they wanted to be able to extract metas (quickly) without evaluating 
the whole file (which is potentially slow).

Of course, you can `provide` variables from a Pollen file (other than `doc` and 
`metas`) the same way as any Racket file.

On Apr 10, 2019, at 9:08 AM, Daniel Sockwell  wrote:

Does anyone know if it is possible/what I would need to `require` to be able to 
define a meta from a Racket file that is imported from my pollen file?  I tried 
requiring `pollen` and `pollen/setup`, but `define-meta` still didn't work.

Thanks in advance and my apologies if I missed something obvious in the docs.

-- 
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