How to specify metas?
In the File Formats doc page, I see:
Beyond that, the only 'metas are the ones that are specified within the source file (see the source formats below for more detail on how to specify metas).
But I see no more information below that…
You can add metas like this, anywhere in the document. They will be collected into a hash table exported as
#lang pollen ◊meta['key: "value"]
You can also do
raco pkg update pollen and the updated docs will be added to your installation.
@mbutterick Thanks, I wanted to use metas as a way to export the document’s title, like a frontmatter. In the tutorial you mention a way to capture a certain but I’d rather export (or is it unidiomatic?). Anyways, I think it’s the tool to do that and redeem it in the template file.
Sure, that's fine. Metas are particularly useful for anything that shouldn't be visible on the page, because they're removed from the output. In the template, you can use
select-from-metas to get the value.
Alternatively, if the document title is already visible in the page, you can pull it out using
Deleting a branch is permanent. It CANNOT be undone. Continue?