Fork me on GitHub
#garden
<
2016-09-26
>
eyelidlessness22:09:58

is it possible to inline an import, rather than outputting a literal @import?

eyelidlessness22:09:06

or just include some raw CSS (then i can just slurp)

niamu22:09:28

Yeah, my inclination would be to go with slurp and concatenate that to the generated output of garden.

eyelidlessness22:09:49

😕 using lein garden with :output-to, really would not want to concat

eyelidlessness22:09:33

i’m going to look into extending the garden compiler protocols and see if i can inject raw css that way

niamu22:09:34

ah, I don’t have any experience using anything other than garden.core/css or garden.core/style for output.

niamu22:09:37

Typically my process is rendering the garden stylesheet to an external file with (css {:output-to “…”} stylesheet) when the web server first starts rather than relying on any leiningen plugin.

niamu22:09:46

In which case concatenating to that external file becomes very easy because you’re not in a plugin environment and you can craft the function you need to spit out whatever you like.

eyelidlessness22:09:52

well. i’m really not looking to significantly change my build process to eliminate 1 HTTP request. 🙂

niamu23:09:49

fair enough 🙂