Sorry to be on this list again for the second time (*in a day!*)---this
time returning to a previous post. I thought I had markup within metadata
fields working... but I checked my LaTeX output today and noticed this:
\title{Conclusion to emStudies in the History of the Renaissance}
And when I dug back into my HTML, I noticed that rather than *splicing*, as
in the example above, I was using the(->html) function to turn my wrapped
X-expression into HTML. So I returned to this posting, and I noticed that
the example you suggested doesn't produce precisely the output I would've
expected.
When I paste your example in DrRacket, I get your output. But the output I
see from the pollen server is a little different. This is the input I give
Pollen, and the HTML output it produces. Is there some subtlety in the
template, or in attaching to 'root that I'm missing?
*Markup:*
>
>
> *#lang pollen/markup◊(define-meta title ◊{Markup in
> ◊em{MetaData}})◊define-meta[author]{Testy
> Testerson}◊define-meta[year]{2016}◊define-meta[month]{08}Lorem ipsum and so
> on.*
And here is the relevant portion of template.html.p, with two ways of
grabbing the title from metas.
...
<body>
<div class="container">
<div class="titleblock">
<h1>◊(->html (hash-ref metas 'title))</h1>
<h1>◊(hash-ref metas 'title)</h1>
...
Which produces the following HTML:
<body>
<div class="container">
<div class="titleblock">
<h1>Markup in <em>MetaData</em></h1>
<h1>Markup in emMetaData</h1>
You may note that in both these cases, I've removed the splice (@); that's
because when I include it, we have this situation.
*Pollen Markup:*
*#lang pollen/markup◊(define-meta title ◊@{Markup in
◊em{MetaData}})◊define-meta[author]{Testy Testerson}...**HTML Output:*
<div class="titleblock">
<h1><@>Markup in <em>MetaData</em></@></h1>
<h1>@Markup in emMetaData</h1>
So something is going on that seems different from what I'd expect from
DrRacket... and while removing the splice and using ->html makes it work
for HTML output, I'm not sure how to do same for LaTeX.
Am I missing something? Thanks.
--
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.