Re: Does moustache work with latest ring and clojure ?

2012-09-08 Thread Murtaza Husain
Herwig/Marko, Below is the code - (def my-app (app wrap-stacktrace (wrap-file resources/public/) [] Hello World [/] Hello World Second [page] (- (chrome page) response constantly) [] (- Nothing was found response

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Anthony Grimes
If it hasn't been updated at this point, I think it is safe to say it isn't being maintained. I'd go with Compojure. It is pretty minimal too. If you really, really want moustache, it might not be hard to fork and update the deps. On Friday, September 7, 2012 12:51:37 AM UTC-5, Murtaza Husain

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
I'm using moustache for all my projects. The new ones too, with clojure 1.4+ and ring 1.0+ Works great, I'd recommend it. cheers -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
Append: you don't need to fork or update it, since it uses version ranges in its dependencies. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Murtaza Husain
Herwig, I have noticed that moustache swallows any errors, is there a way so that any errors bubble up ? Thanks, Murtaza On Friday, September 7, 2012 2:35:07 PM UTC+5:30, Herwig Hochleitner wrote: Append: you don't need to fork or update it, since it uses version ranges in its

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
2012/9/7 Murtaza Husain murtaza.hus...@sevenolives.com I have noticed that moustache swallows any errors, is there a way so that any errors bubble up ? I'm not sure what you mean, in my experiences exceptions thrown by handlers always bubble up. in this example (defn route-handler [req]

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Murtaza Husain
What I mean is the exceptions dont show up in the browser. I see them in the server terminal. The browser will either show a blank screen or the last route that worked. Only when I go to the server terminal is when I see the stacktarce. So sometimes its misleading, even though I may see

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
In my experience, ring responds with 500 on error. You can use ring.middleware.stacktrace to make the error show up in the browser. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Murtaza Husain
Herwig, Thanks for the detailed answers below. (def my-app (app wrap-stacktrace (wrap-file resources/public/) [page] (- (chrome page) response constantly) [a b] (- a b response constantly)) [] (- Nothing was found response

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Baishampayan Ghose
(defn route-handler [req] (throw (clojure.lang.ExceptionInfo. Error))) OT - IMHO you should use ex-info (and its counterpart ex-data) instead of the direct Java constructor. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- You received this message because you are subscribed to

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
Am 07.09.2012 19:06 schrieb Murtaza Husain murtaza.hus...@sevenolives.com : Herwig, Thanks for the detailed answers below. (def my-app (app wrap-stacktrace (wrap-file resources/public/) [page] (- (chrome page) response constantly) [a

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Herwig Hochleitner
Ah, didn't know about those. Thanks for the hint! On Topic: Issue has been resolved in a private exchange. kind regards Am 07.09.2012 19:10 schrieb Baishampayan Ghose b.gh...@gmail.com: (defn route-handler [req] (throw (clojure.lang.ExceptionInfo. Error))) OT - IMHO you should use

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Anthony Grimes
This isn't actually a good thing: http://nelsonmorris.net/2012/07/31/do-not-use-version-ranges-in-project-clj.html FWIW, even if it didn't use version ranges, the version of Clojure and other dependencies that you use would take precedence over the ones it specifies. On Friday, September 7,

Re: Does moustache work with latest ring and clojure ?

2012-09-07 Thread Marko Topolnik
For the record, Moustache does support the special case of returning a literal string response: user (run-jetty (app [hi] Hello, world!\n) {:port :join? false}) $ curl localhost:/hi Hello, world! On Friday, September 7, 2012 7:06:42 PM UTC+2, Murtaza Husain wrote: Herwig, Thanks

Does moustache work with latest ring and clojure ?

2012-09-06 Thread Murtaza Husain
Hi, Moustache seems to be a great library and I would like to use it for my next project (No offense to compojure :) ) . However it still lists clojure 1.1 and ring 0.2 as its dependencies (on clojars). Does moustache work with clojure 1.4 and ring 1.1.5 ? Also is it still being maintained ?