luminus

llsouder 2018-10-01T13:47:04.000100Z

I am also wondering if some cool plugin will wrap up my get-user hugsql in the appropriate response. With all the stuff luminus gives me for free, I am hesitant to code up this route/rest/response "by-hand" .

Dormo 2018-10-01T16:58:18.000100Z

@llsouder do you want to render a new page or update an existing one?

llsouder 2018-10-01T18:15:48.000100Z

@vheuken I would like to update an existing page using Ajax.

Dormo 2018-10-01T19:34:40.000100Z

@llsouder have you looked into Sente?

Dormo 2018-10-01T19:34:51.000100Z

https://github.com/ptaoussanis/sente

Dormo 2018-10-01T19:35:03.000200Z

It's rather simple to use. Supports HTTPKit, Immutant, nginx, aleph, and node

Dormo 2018-10-01T19:35:56.000100Z

Primarily uses websockets, but can fall back to ajax. You can also force it to solely use one or the other if you want.

Dormo 2018-10-01T19:37:08.000100Z

As far as there being >some cool plugin will wrap up my get-user hugsql in the appropriate response. .... I don't believe anything of the sort exists.

Dormo 2018-10-01T19:38:16.000100Z

Someone else can chime in if they disagree, but the philosophy of Clojure and its ecosystem is to give you very general tools. These give you the freedom to create your own abstractions. The cost, of course, is fewer "plug and play" options like are expected in environments like PHP and Rails.

👍 1
llsouder 2018-10-01T22:26:28.000200Z

I just found this page: http://www.luminusweb.net/docs/services.html

llsouder 2018-10-01T22:26:37.000100Z

should I use swagger?