forked from fhd/clostache
-
Notifications
You must be signed in to change notification settings - Fork 17
Enable using dotted access notation in a section #2
Copy link
Copy link
Open
Description
Fails (prints nothing):
{{#photos}} {{thumb.src}} {{/photos}}
Works (prints photo's thumb's src):
{{#photos}} {{#thumb}}{{src}}{{/thumb}} {{/photos}}
First example should work same as second one, but it fails.
Failing test case:
(deftest test-render-tag-with-dotted-name-like-section--inside-another-section
(is (= "photo thumb" (render "{{#photos}}{{src}} {{thumb.src}}{{/photos}}"
{:photos [{:src "photo" :thumb {:src "thumb"}}]}))))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels