Hello! You have strange syntax -- no `:` symbol before keyword, `render` (not `render-file`) function for html template...
Try this, both works for me [selmer "0.8.0"]: (render "{{ foo-str|safe }}" {:foo-str "<b>bold!</b>"}) (render-file "templates/foo.djhtml" {:foo-str "<b>bold!</b>"}) пятница, 20 февраля 2015 г., 4:27:28 UTC+6 пользователь Sven Richter написал: > > Hi, > > I wonder if this is even possible. > I have a string :foo-string "<b>foo</b>" and I pass this string to selmer: > (render "templ.html" {foo-string "<b>foo</b>"}) > > Now in the templ.html I do this: > {{foo-string|safe}} which injects this into the html: > "<b>foo</b>" > > But what I need is plain html like this inside the template: > <b>foo</b> > > Is that even possible? > > Thanks, > Sven > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.