> On Apr 10, 2019, at 11:33 AM, Daniel Sockwell <[email protected]> wrote: > > 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).
No, because `define-meta` depends on special cooperation with the `#lang pollen` reader (= the thing that converts the source code into a parse tree) > 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? Pollen projects can incorporate files that are not written in `#lang pollen`, as long as they export `doc` and `metas` with the right characteristics. (= `doc` must be an X-expression, and `metas` must be a hash) So yes, you can "write a meta" from a non-Pollen file, but you don't use `define-meta`. You just make a hash called `metas` (however you like) and export it with `provide`. -- 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.
