> On Apr 6, 2019, at 4:00 PM, Daniel Sockwell <[email protected]> wrote:
>
> I have a quick question: is it possible to use Pollen to write x-expressions
> directly? That is, can I directly write
>
> '(root "I want to attend " (em "RacketCon " (strong "this") " year") ".")
>
> instead of
>
> #lang pollen
> I want to attend ◊em{RacketCon ◊strong{this} year}.
Yes, you can insert Racket-style expressions instead of Pollen-style
expressions. [1]
The `root` wrapper is always added by Pollen, but you can use the splicing
operator `@` to accomplish the same thing. Therefore this:
#lang pollen/markup
◊(@ "I want to attend " (em "RacketCon " (strong "this") " year") ".")
is the same as this:
#lang pollen/markup
I want to attend ◊em{RacketCon ◊strong{this} year}.
Or mix the styles:
#lang pollen/markup
◊(@ "I want to attend " (em "RacketCon " (strong "this") " year") ".")
I want to attend ◊em{RacketCon ◊strong{this} year}.
[1]
https://docs.racket-lang.org/pollen/pollen-command-syntax.html#%28part._the-two-command-styles%29
<https://docs.racket-lang.org/pollen/pollen-command-syntax.html#(part._the-two-command-styles)>
--
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.