Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04b5918

Browse files
author
Ryan Neufeld
committed
Merge pull request clojure-cookbook#413 from cloojure/patch-18
Update 7-11_enlive.asciidoc
2 parents 33e8c25 + 051f095 commit 04b5918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

07_webapps/7-11_enlive.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ would be parsed into the Clojure data:
205205
({:tag :div,
206206
:attrs {:id "foo"},
207207
:content
208-
({:tag :span, :attrs {:class "bar"}, :content ("Hello!")})})})}
208+
({:tag :span, :attrs {:id "bar"}, :content ("Hello!")})})})}
209209
----
210210

211211
This is more verbose, but it is easier to manipulate from Clojure. You
@@ -301,8 +301,8 @@ braces). The range selector contains two other selectors and
301301
inclusively matches all the nodes between the two matched nodes, in
302302
document order. The starting node is in key position in the map
303303
literal and the ending node is in value position, so the selector
304-
+{[:.foo] [:.bar]}+ will match all nodes between nodes with an ID of
305-
"foo" and an ID of "bar".
304+
+{[:#foo] [:#bar]}+ will match all nodes between nodes with CSS ID of
305+
"foo" and a CSS ID of "bar".
306306

307307
The example in the solution uses a range selector in the +defsnippet+
308308
form to select all the nodes that are part of the same logical blog

0 commit comments

Comments
 (0)