Fork me on GitHub
#luminus
<
2017-06-27
>
hackeryarn16:06:06

@yogthos would you be open to me working on expanding the auth utility?

hackeryarn16:06:14

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.

yogthos16:06:23

Yeah definitely, could be a luminus specific auth lib

hackeryarn16:06:54

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.

hackeryarn16:06:34

I know a lot of people have run into trouble with libraries abstracting too much auth.

yogthos18:06:02

yeah it’s always a balance between exposing too much boilerplate to the user, and having libraries being too opinionated

yogthos18:06:18

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

yogthos18:06:38

I definitely agree auth is something that should be easier to do 🙂

assoc-in20:06:45

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 %}

yogthos02:06:25

assoc-in: yeah unfortunately, selmer leaves blank lines for tags, it's a limitation of how the buffer works

assoc-in17:06:02

Okay thanks

puzzler22:06:37

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?

codefinger23:06:05

@puzzler how would you do it locally?

puzzler23:06:16

@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

codefinger23:06:45

@puzzler on heroku there is no nginx in front of your java server. (the heroku router does that work)

codefinger23:06:23

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

codefinger23:06:38

I work at heroku, but i'm really fuzzy on all the frontend/spa stuff

puzzler23:06:30

I believe the default server in luminus is immutant, so maybe there's an easy way to support gzip from immutant?