Clojure:DSL for CSS [英] Clojure: DSL for CSS

查看:145
本文介绍了Clojure:DSL for CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CSS缺少变量,函数等等。

CSS lacks things like variables, functions, etc ...

Clojure非常适合写入DSLS。

Clojure is great for writing DSLS.

我目前已经使用Clojure + Ring + Compojure作为后端; ClojureScript用于编写JavaScript以与Google Closure类进行交互。

I'm currently already using Clojure+Ring+Compojure for backend; ClojureScript for writing Javascript to interact with Google Closure classes.

我想在Clojure中创建CSS。

I would like to be able to create CSS in Clojure.

有没有好的Clojure DSL用于创建CSS?

Is there any good Clojure DSL for creating CSS?

推荐答案

查看 http://clojure-libraries.appspot.com/cat / Web + Server + Libraries http://clojure.org/libraries ,有什么看起来像选项是:

Looking at http://clojure-libraries.appspot.com/cat/Web+Server+Libraries and http://clojure.org/libraries, there are what it looks like the options are:

  • cssgen - http://github.com/paraseba/cssgen
  • clj-style - https://github.com/rathwell/clj-style
  • neman.css - http://bitbucket.org/ksojat/neman/
  • Gaka - https://github.com/briancarper/gaka

我没有使用过任何一个,但它看起来像你可能会得到最好的结果与cssgen或clj风格。

I haven't used any of them, but it looks like you'll probably get the best results with cssgen or clj-style.

这篇关于Clojure:DSL for CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆