This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-27
Channels
- # bangalore-clj (2)
- # beginners (37)
- # boot (16)
- # cider (17)
- # clara (4)
- # cljs-dev (351)
- # cljsrn (16)
- # clojure (219)
- # clojure-belgium (4)
- # clojure-dev (3)
- # clojure-france (2)
- # clojure-italy (24)
- # clojure-russia (23)
- # clojure-spec (55)
- # clojure-switzerland (3)
- # clojure-uk (89)
- # clojurescript (121)
- # cursive (2)
- # datomic (29)
- # devops (2)
- # graphql (8)
- # hoplon (15)
- # immutant (5)
- # lein-figwheel (4)
- # liberator (3)
- # luminus (18)
- # off-topic (9)
- # om (6)
- # onyx (31)
- # pedestal (48)
- # precept (9)
- # re-frame (19)
- # reagent (63)
- # ring-swagger (69)
- # robots (1)
- # slack-help (14)
- # spacemacs (12)
- # sql (2)
- # test-check (4)
- # unrepl (28)
- # untangled (5)
- # yada (3)
@yogthos would you be open to me working on expanding the auth utility?
I hate doing Auth every time and I thought it would be nice to have it built out a bit more and implement a full auth Model. At least as a starting point.
Maybe. However, I wouldn't want to create another devise style library. I was just thinking having all the sql and actions configured for a basic user when auth is enabled. Then you can freely modify everything.
I know a lot of people have run into trouble with libraries abstracting too much auth.
yeah it’s always a balance between exposing too much boilerplate to the user, and having libraries being too opinionated
let’s take a look at a sample project and then we can figure out what’s the best way to do it from there
I am having trouble using Selmer to generate some boilerplate clj code. If I enter the code as in the first example I get alot of newlines in the output when rendered, due to the newlines I used to format the code. If I enter like the second example I get the correct output, but it is difficult to read with if statements inside of the the for. Does anyone have advice on how to handle this? I was thinking I could modify Selmer to only include new lines in the rendered file if I explicitly place a \n.
{% for model in strs %}
{{model}}
{% endfor %}
{% for model in strs %}{{model}}{% endfor %}
assoc-in: yeah unfortunately, selmer leaves blank lines for tags, it's a limitation of how the buffer works
I'm using the basic luminus template with clojurescript, deployed to heroku. Is there anything special I need to do to enable gzip for the compiled javascript file and art assets?
@puzzler how would you do it locally?
@codefinger I have no idea whether the local server automatically gzips or not. The reason I mention heroku is because the luminus website only talks about gzip in the context of nginx http://www.luminusweb.net/docs/deployment.md
@puzzler on heroku there is no nginx in front of your java server. (the heroku router does that work)
but i wonder if the static buildpack could be combine with a clojurescript app. it would put nginx infront and enables gzip by default https://github.com/heroku/heroku-buildpack-static
I work at heroku, but i'm really fuzzy on all the frontend/spa stuff