On Jun 27, 2016, at 10:19 PM, Chris Forster <[email protected]> wrote:

> Is it possible to include Pollen markup in the metas metadata hash?
>  
> Am I missing something? Is it possible to use markup/function in metas? Is 
> there a different approach to metadata I should be exploring?

Yes (although I agree the error message could be more helpful). A meta value 
can be any single X-expression. The problem with

Conclusion to ◊em{Studies in the History of the Renaissance}

Is that it's a sequence of two X-expressions: the string "Conclusion to" 
followed by the sub-expression '(em "Studies in the History of the 
Renaissance").

The solution is to wrap it all in a single tag so it becomes one X-expression. 
You can create a new tag, or just use the splice tag, for instance:


#lang pollen/markup
◊(define-meta title ◊@{Conclusion to ◊em{Studies in the History of the 
Renaissance}})

Now you have ◊(select-from-metas 'title metas)


Result:

'(root "Now you have " "Conclusion to " (em "Studies in the History of the 
Renaissance") "\n")

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