If I'm reading the docs correctly, I should be able to apply a transformation to two different selectors using a set, e.g. #{[:h1] [:h2]} (some-transformation…). The set syntax seems to be working if there's only one selector in the set, e.g. #{[:h1]}, but adding a second selector causes nothing to happen.
I was able to reproduce this by editing /example/om/src/kioo_example/core.clj as follows:
(defsnippet my-header "main.html" [:header]
[{:keys [heading navigation]}]
{[:h1] (content heading)
[:ul] (content (map my-nav-item navigation))
#{[:h1] [:ul]} (set-style :font-style "italic")}) ; This does not work
Using either #{[:h1]} or #{[:ul]} has the expected effect.
If I'm reading the docs correctly, I should be able to apply a transformation to two different selectors using a set, e.g.
#{[:h1] [:h2]} (some-transformation…)
. The set syntax seems to be working if there's only one selector in the set, e.g.#{[:h1]}
, but adding a second selector causes nothing to happen.I was able to reproduce this by editing
/example/om/src/kioo_example/core.clj
as follows:Using either
#{[:h1]}
or#{[:ul]}
has the expected effect.