faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
_whitelogger has joined #amber
<FromGitter> <johansmitsnl> @Blacksmoke16 the site is not 100% mobile ready. But good idea!
<FromGitter> <Blacksmoke16> what site? the crystal jobs one?
<FromGitter> <Blacksmoke16> it isnt mine, but yea, is a good start
feepbot has quit [Ping timeout: 252 seconds]
feepbot has joined #amber
<FromGitter> <mkhairi> how to conditionally set layout ? ⏎ `
<FromGitter> <mkhairi> ` if signed_in? ⏎ ⏎ ``` "application.slang" ⏎ else ⏎ "public.slang" ⏎ end```` [https://gitter.im/amberframework/amber?at=5beaf0c06b9822140d241611]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
<FromGitter> <elorest> @mkhairi Because layouts are set at the macro level. I.E. compiled in you can’t really do it that way. You could do it per action though by manually specifying the template and the layout.
<FromGitter> <elorest> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5beb14637a36913a9a38ade5]
<FromGitter> <bartblast> Hi! Does anybody know how to get the request port and/or protocol of the current request? I found this doc: https://docs.amberframework.org/amber/guides/controllers/request-and-response-objects but it looks like the protocol info is not implemented in the Amber Request class. And... the port returns nil. There is a host_with_port method on the Crystal HTTP::Request but it returns host only. Do I miss something?
feepbot has quit [Ping timeout: 268 seconds]
feepbot has joined #amber
feepbot has quit [Ping timeout: 268 seconds]
feepbot has joined #amber
feepbot has quit [Remote host closed the connection]
feepbot has joined #amber
<FromGitter> <elorest> @ghost~5be9967fd73408ce4faea97f I dont’ think anything has changed on routing. There is a small difference how it handles extensions such as `/listings.json`
<FromGitter> <elorest> Wha tissu eare you having?
<FromGitter> <elorest> @bartblast Should definitely be able to tell protocol and ports by just reading your env settings. Try `Amber.settings.port` etc.