weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 175 forks source link

Refactored include- functions to add less-css support #59

Closed pumbers closed 12 years ago

pumbers commented 12 years ago

I needed to use Less css stylesheets in a project but couldn't see an easy way to do it without reverting to using raw html functions rather than the slicker include-css function, so I reworked the include-js and include-css functions to more general include-script and include-link, then switched the original functions to use partials based on those.

weavejester commented 12 years ago

I think these functions are a little too specific to be included in Hiccup core. Usually LESS stylesheets are precompiled into CSS; using them raw and transforming them client-side is relatively rare.