I have recently inherited a non-finished web app written in Clojure, based on compojure and hiccup basically. It's a bad attempt to model some sort of MVC with OO style not in the FP style as seen here . So I bet to re-start the project almost from the scratch reusing the useful parts. I consider these alternatives:
The least breaking alternative would be Compojure+Enlive+jquery-pjax
Using a clojure web framework like Pedestal Any experiences about this?
The initial idea was to implement a RESTful API serving JSON so for the more elaborated solution I have Backbone+react.js in my mind for the front-end and Liberator for the back-end but it's likely to take longer to develop than a traditional server app.
Thoughts and alternatives taking into account that an Ajax experience is required please, thanks a lot!
Chiron.. 5
我不确定RESTful API与帖子中的响应之间有什么关系.但是......
你有多种选择:基座,解放者和驯鹿.
如果您需要的只是RESTful API,那么我认为Liberator是您最好的选择,并且不会像您提到的那样花费更长的时间.我不知道你是怎么得到这种印象的.
如果您想开发单页应用程序,基座会闪耀,但框架通常需要很好的时间来掌握和理解它是如何工作的.
看看Caribou也.它易于使用且感觉熟悉.
但同样,这是你的选择.
我不确定RESTful API与帖子中的响应之间有什么关系.但是......
你有多种选择:基座,解放者和驯鹿.
如果您需要的只是RESTful API,那么我认为Liberator是您最好的选择,并且不会像您提到的那样花费更长的时间.我不知道你是怎么得到这种印象的.
如果您想开发单页应用程序,基座会闪耀,但框架通常需要很好的时间来掌握和理解它是如何工作的.
看看Caribou也.它易于使用且感觉熟悉.
但同样,这是你的选择.