noir Questions

3

Solved

I'm playing around with deploying Clojure/Noir apps on Heroku and I've got my app mostly working. However, one final piece I need is to figure out the hostname of my app when deployed on Heroku. Id...
Cary asked 21/5, 2012 at 13:50

3

I think I have a fairly straightforward problem here. But I've been looking at this screen too long. So I'm trying (and failing) to get stateful sessions working in Compojure. The refheap code past...
Birchfield asked 11/2, 2013 at 4:51

1

Solved

I am creating a noir webapp, and I need to dynamically create new views and models. I've been following the noir examples, in which the view and the controller for a resource have separate namespac...
Excretion asked 22/4, 2012 at 20:4

2

Solved

I'm helping to set up a Web site with Clojure's Noir framework, though I have a lot more experience with Django/Python. In Django, I'm used to URLs such as http://site/some/url being 302-redir...
Frogmouth asked 18/9, 2012 at 3:16

1

In many noir apps I have seen the below declaration. What is the purpose of skipping aot ? When to use it and when not to use it ? Any advantages / disadvantages ? :main ^{:skip-aot true} sample-a...
Unbearable asked 24/6, 2012 at 2:2

2

Solved

If one is planning to create a UI-less web service (receives JSON and/or XML, returns JSON and/or XML), does Noir provide anything useful over and above Compojure?
Algebraic asked 15/2, 2012 at 16:18

1

Solved

I'm using Noir. This is my project.clj (defproject noir "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.3.0"]]) lein run gives me this error: ...
Trona asked 25/12, 2012 at 4:49

4

Solved

I'm having trouble understanding the point of clojure's Noir library. It seems to be a framework written on top of compojure that renames defroute to defpage and calls it a day. Obviously an unfair...
Aeri asked 30/3, 2012 at 20:32

1

Is there anything equivalent to will_paginate for noir/hiccup? How do people usually paginate with noir/hiccup? Thank you
Hyaluronidase asked 25/11, 2012 at 13:50

2

Solved

I have a function that begins like this: (defn data-one [suser] (def suser-first-name (select db/firstNames (fields :firstname) (where {:username suser}))) (def suser-middle-name (select db...
Pilfer asked 29/9, 2012 at 17:38

1

Solved

I am completely stuck on where to start with getting a log-in area for a Clojure site I am building (for fun). I've looked at several resources, which I'll post below, mercilessly copy/pasted cod...
Declaim asked 26/8, 2012 at 11:2

2

I have a file input setup like this [:p "Upload a book"] (form-to [:post "/upload"] (file-upload :book) (submit-button "Upload")) My upload endpoint then looks like this. (defpage [:post "/u...
Anaerobe asked 8/2, 2012 at 2:23

3

Solved

I am getting compile errors while running lein run on my Noir project. It was working, and then suddenly it stopped working. My suspicion was that the error is connected with trying to include [org...
Ansermet asked 3/11, 2011 at 7:55

2

Solved

How would one go about using Noir with user authentication and an ORM. Would it all have to be accessed via java objects? Are there any rails style "blog" tutorials that go about user auth and da...
Thurber asked 2/12, 2011 at 11:18

2

Solved

I have a feeling I've missed something obvious here, but I don't know where to start looking. I have a fresh noir app, created thusly: $ lein noir new hiworld I add a new page handler to src/hi...
Gidgetgie asked 20/2, 2012 at 8:44

1

Solved

is there any way to return a clojure function as a string? I am making some online documentation and I would really like to be able to add code into the html by somehow evaluating a function into t...
Hacienda asked 9/3, 2012 at 18:45

1

Solved

I'm trying to force SSL on my site. I want to have a ring style middle-ware to redirect the site to the same URL with https if it is only http I wrote the following code but it doesn't really do a...
Grammer asked 15/2, 2012 at 23:16

4

Solved

The Noir macro defpage is giving me a little bit of trouble. I am trying to construct a call similar to this: (defpage [:post "some/url"] [data] ;; some stuff... ) However, instead of using th...
Aleishaalejandra asked 3/12, 2011 at 23:21

1

Solved

To start off I am not a Java programmer, so it would be helpful if your answers are not defined in terms of Java (inasmuch as that makes sense). I have a leiningen project (specifically a web proj...
Acicula asked 23/11, 2011 at 3:51

2

Solved

I'm developing a Clojure webnoir app and I need to construct a callback url (for Twitter oauth) that is different in dev-mode than it is in production mode. In dev-mode it needs to be localhost:808...
Dynamite asked 16/10, 2011 at 10:2
1

© 2022 - 2024 — McMap. All rights reserved.