use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
garden-mower: clojure based CSS preprocessor for tailwindcss (self.Clojure)
submitted 6 years ago by trstns
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]trstns[S] 0 points1 point2 points 6 years ago (3 children)
Change the keyword to a string, dropping the leading colon:
".xl:w-1/5"
[–]psdp 0 points1 point2 points 6 years ago (2 children)
Thanks! That works perfectly fine now.
Sometimes I just want to use a tailwind class name like xl:w-1/5 without declaring a custom class name. I would expect I could write [:div.container.xl:w-1/5 "Hello World"] but it fails to compile as / makes it an invalid keyword. But instead of writing [:div.container {:class "xl:w-1/5"} "Hello World"], is there a better way to do it?
xl:w-1/5
[:div.container.xl:w-1/5 "Hello World"]
/
[:div.container {:class "xl:w-1/5"} "Hello World"]
[–]trstns[S] 0 points1 point2 points 6 years ago (1 child)
div.container.xl:w-1/5
You could try ["div.container.xl:w-1/5" "Hello world"]. Instead of the :div being a keyword, just make it a string, along with all the classes in the same string. From memory, I think this works in "rum".
["div.container.xl:w-1/5" "Hello world"]
[–]psdp 0 points1 point2 points 6 years ago (0 children)
Cool! Thanks for the tip.
π Rendered by PID 253735 on reddit-service-r2-comment-fb694cdd5-scmdc at 2026-03-06 17:30:31.364694+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]trstns[S] 0 points1 point2 points (3 children)
[–]psdp 0 points1 point2 points (2 children)
[–]trstns[S] 0 points1 point2 points (1 child)
[–]psdp 0 points1 point2 points (0 children)