比较Clojure web框架 [英] Comparison of Clojure web frameworks

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

问题描述

Clojure有几个网络框架

There are a few web frameworks for Clojure

  • Compojure
  • Webjure
  • Conjure
  • Moustache

以及一些用于处理某些网络开发子任务的库,例如

and also some libraries for dealing with certain web development subtasks, such as


  • Enlive 模板


  • Hiccup noreferrer> Ring 处理具有请求/响应的低级别内容

  • ClojureQL 的持久性(它似乎不是很活跃,虽然)

  • Enlive for templating
  • Hiccup for templating
  • Ring to handle lower level stuff with requests/responses
  • ClojureQL for persistence (it doesn't seem very active, though)

还有数百个Java库要使用。 此处其中两个比较了一下

There are also hundreds of Java libraries to be used. Some aspects were already discussed here and two of them compared a bit.

我想知道这些框架/组件在成熟度,范围,易于开发,Django / RoR感觉等方面进行比较。

I wonder how these frameworks/components compare in terms of maturity, scope, ease of development, Django/RoR feeling, etc.

推荐答案

首先开始与Web开发,它是与Clojure。我之前没有的网络开发经验。我不能,对我的生活,图Compojure出。我不知道如果初学者文档自那以后(不是很久以前)或者没有改进,但在当时,我不能管理它。一个朋友告诉我了一个小胡子,在阅读README之后,我能够扔在一起什么是 http:// try-clojure。 org 在它的当前状态。因此,就易用性而言,我认为Mustache为我吃了蛋糕。

When I first started with web development, it was with Clojure. I had no prior experience with web development at all. I could not, for the life of me, figure Compojure out. I don't know if beginner documentation has been improved since then (it wasn't that long ago) or not, but at the time, I couldn't manage it. A friend pointed me to Moustache and after reading the README, I was able to throw together what is http://try-clojure.org in it's current state. So, as far as ease of use goes, I think Moustache takes the cake for me.

但是,如果这个已经存在,我可能会唱不同的曲调。

However, if this has existed at the time, I might be singing a different tune.

Conjure看起来非常酷,虽然与其他框架非常不同。鉴于我在网络开发方面的经验非常有限,在这方面我没有多少发言权,但是Conjure对我来说感觉不自在。它只是不感觉正确。它可能只是我不习惯的方式它的事情。

Conjure looks very cool, though very different from the other frameworks. Given my very limited experience with web development in general, I don't have much say in this matter, but Conjure feels kind of unclojurey to me. It just doesn't feel right. It may just be that I'm not used to the way it does things.

更新:这是一段时间,因为我写这个。很多事情都改变了。没有很多人使用Mustache,它不是真正积极维护,虽然它是完全足够(和简单),它可能仍然可以工作,我现在建议去Compojure或Noir。这两个都是目前维护的框架,并且在他们的工作都很出色。

UPDATE: It has been a while since I wrote this. Lots of things have changed. Not many people use Moustache anymore, and it isn't really actively maintained, though it was complete enough (and simple enough) that it probably still works, I'd now recommend going with Compojure or Noir instead. Both of these are currently maintained frameworks and both are excellent at their job.

更新2:Noir已经废弃了一段时间,其大部分功能移动到库旨在用于compojure /其他基于环形的Web框架(称为 lib-noir )。

UPDATE 2: Noir has been deprecated for quite a while and most of its functionality moved to a library designed to be used from compojure/other ring-based web frameworks called lib-noir.

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

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