hiccup

Hiccup not working : FileNotFoundException: Could not locate ../as__init.class or ../as.clj on classpath

百般思念 提交于 2020-02-25 01:26:56
问题 I'm just beginning with clojure and I'm trying to build a small web app. I wanted to try out hiccup but it doesn't seem to be working. My code is below. Project.clj (defproject WebTest "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :dependencies [[org.clojure/clojure "1.4.0"] [compojure "1.1.5"] [hiccup "1.0.3"] [org.clojure/java.jdbc "0.2.3"] [net.sourceforge.jtds/jtds "1.2.4"] ] :plugins [[lein-ring "0.8.2"] [lein-idea "1.0.1"]] :ring {:handler

Hiccup not working : FileNotFoundException: Could not locate ../as__init.class or ../as.clj on classpath

送分小仙女□ 提交于 2020-02-25 01:26:55
问题 I'm just beginning with clojure and I'm trying to build a small web app. I wanted to try out hiccup but it doesn't seem to be working. My code is below. Project.clj (defproject WebTest "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :dependencies [[org.clojure/clojure "1.4.0"] [compojure "1.1.5"] [hiccup "1.0.3"] [org.clojure/java.jdbc "0.2.3"] [net.sourceforge.jtds/jtds "1.2.4"] ] :plugins [[lein-ring "0.8.2"] [lein-idea "1.0.1"]] :ring {:handler

Clojure web framework for designers/ front end devs [closed]

寵の児 提交于 2019-12-23 07:29:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . All of the popular Clojure web frameworks I am seeing use hiccup to generate HTML. I find hiccup is hard to have a front end design person adjust to, compared to other frameworks that parse the syntax out of templates. Is there a clojure web framework that doesn't require the front end developer to learn LISP?

Friend authentication empty param

北城以北 提交于 2019-12-13 03:36:49
问题 I am trying to implement friend authentication on my web app but when i try to login i get this */login?&login_failed=Y&username=*...my param is empty and i cant login,what am i doing wrong? these are my routes... (defroutes routes (GET "/" [] (index)) (GET "/indexMessage" [] (indexMessage)) (GET "/login" req (index)) (POST "/insert-user" {params :params} (let [firstname (get params "firstname") lastname (get params "lastname") email (get params "email") password (get params "password") sex

Using Compojure, Hiccup and Ring to upload a file

青春壹個敷衍的年華 提交于 2019-12-06 03:23:29
问题 To upload a file to a server I'm writing in Clojure I need a client form that looks something like this: <form action="/file" method="post" enctype="multipart/form-data"> <input name="file" type="file" size="20" /> <input type="submit" name="submit" value="submit" /> However I can't find the documentation for Hiccup or in Compojure to create a form like this. The sample I have looks like this : [:h2 "Choose a file to upload"] :form {:method "post" :action "/upload"} [:input.math {:type "text"

Using Compojure, Hiccup and Ring to upload a file

守給你的承諾、 提交于 2019-12-04 09:56:54
To upload a file to a server I'm writing in Clojure I need a client form that looks something like this: <form action="/file" method="post" enctype="multipart/form-data"> <input name="file" type="file" size="20" /> <input type="submit" name="submit" value="submit" /> However I can't find the documentation for Hiccup or in Compojure to create a form like this. The sample I have looks like this : [:h2 "Choose a file to upload"] :form {:method "post" :action "/upload"} [:input.math {:type "text" :name "a"}] [:span.math " + "] [:input.math {:type "text" :name "b"}] [:br] So my question is where is