<hypercore>
whats the reasoning behind usng functions instead of templates in Lucky?
<FromGitter>
<Blacksmoke16> dunno never used it
<FromGitter>
<fridgerator> There is a lucky gitter channel, you might get more information there
<FromGitter>
<Blacksmoke16> They don't have a relay bot I think was the problem
<hypercore>
yeah i'm only on irc right now
_whitelogger has joined #crystal-lang
chemist69 has quit [Ping timeout: 245 seconds]
chemist69 has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter>
<watzon> hypercore it's more powerful than most template languages and allows you to stay in Crystal
<FromGitter>
<watzon> Takes some getting use to, but I like it
_whitelogger has joined #crystal-lang
gangstacat has quit [Quit: Ĝis!]
return0e has quit [Ping timeout: 265 seconds]
absolutejam1 has joined #crystal-lang
gangstacat has joined #crystal-lang
absolutejam1 has quit [Ping timeout: 265 seconds]
ht_ has joined #crystal-lang
gangstacat has quit [Quit: Ĝis!]
gangstacat has joined #crystal-lang
erdnaxeli has joined #crystal-lang
absolutejam1 has joined #crystal-lang
absolutejam1 has quit [Ping timeout: 276 seconds]
<FromGitter>
<straight-shoota> hypercore, I haven't worked with lucky, but you can probably hook it up with a template engine. https://github.com/straight-shoota/crinja evaluates at run time, so you edit your templates without rebuilding the app. It's obviously not as performant as a pure-Crystal template, but it's incredibly useful for rapid development.
ht_ has quit [Quit: ht_]
alex`` has joined #crystal-lang
sorcus has joined #crystal-lang
return0e has joined #crystal-lang
<hypercore>
watzon: i've just never seen a backend framework use templates in this way, it's actually not that bad
<hypercore>
getting kind of used to it now
<hypercore>
thanks straight-shoota, i'll take a look
<hypercore>
is there a way way to import sub-templates for lucky?
<hypercore>
e.g. if i have a sidebar.cr, how can i use this in my main_layout.cr?
<FromGitter>
<asterite> I suggest you use Lucky's gitter
<FromGitter>
<Blacksmoke16> they dont have a relay bot for IRC
<FromGitter>
<Blacksmoke16> but yea, would prob get more help from there
<hypercore>
ok thanks
<FromGitter>
<Fryguy> You don't need a relay bot for irc... Just connect your irc client to irc.gitter.im
<FromGitter>
<kingsleyh> oh you mean read and process the html file at compile time instead of runtime
<FromGitter>
<kingsleyh> using that run macro
<FromGitter>
<stronny> rebuild the binary on each run
<FromGitter>
<Blacksmoke16> idk, i was just pointing that out
<FromGitter>
<kingsleyh> ok yes I think that can work
<FromGitter>
<stronny> your users will have to have crystal compiler installed
<FromGitter>
<kingsleyh> binary 1 can deal with parsing the html and producing all the commands that need to be executed - and binary 2 can run binary 1 and supply it with the html file to process
<FromGitter>
<kingsleyh> yeah the idea is they must have Crystal compiler anyway
<FromGitter>
<Blacksmoke16> seems like a hacky solution...
<FromGitter>
<kingsleyh> I don't think it's possible any other way
<FromGitter>
<kingsleyh> the current way I do it with a map of method_name -> Proc - is very flaky and the compiler crashes depending on the content of the Proc
<FromGitter>
<kingsleyh> if I could put whatever I want in a Proc and call it later without the compiler crashing - that would be a decent solution
<FromGitter>
<stronny> can you show an example of a crash?
<FromGitter>
<kingsleyh> but doing it in 2 steps using the run macro - seems like the only alternative - if I want to keep the current concept
<FromGitter>
<kingsleyh> yeah
<FromGitter>
<stronny> I mean you can also shell out to a bash script or something
<FromGitter>
<stronny> you can use Lua
<FromGitter>
<stronny> there are options
<FromGitter>
<stronny> (Lua built in your crystal program)
<hypercore>
Blacksmoke16: it only has instructions for heroku, not Linode/DO/VUltr/etc
<FromGitter>
<watzon> Lucky is, I believe, already set up to work with Docker as well. So if you have your VPS set up to run Docker containers it should be easy
<FromGitter>
<watzon> I recommend looking into Traefik
<FromGitter>
<Blacksmoke16> right, you mentioned heroku
<FromGitter>
<watzon> Dude that is freaking awesome
<FromGitter>
<watzon> I think it would take me some time to figure out how to switch gears from the way I'm currently doing testing, but having it all laid out on a webpage like that is beautiful
<FromGitter>
<kingsleyh> thanks :)
<FromGitter>
<kingsleyh> I'm going to generate a dashboard page with links to all the reports and some graphs and overview etc
<FromGitter>
<Blacksmoke16> So you write HTML to write tests?
<FromGitter>
<Blacksmoke16> added section on the new ad hoc validation feature
ht_ has quit [Quit: ht_]
<FromGitter>
<absolutejam_gitlab> > Business analyst and testers write scenarios and dev automate ⏎ ⏎ Does that work well?
<FromGitter>
<absolutejam_gitlab> Sounds god-awful, but I guess it depends on the business & approach
absolutejam1 has quit [Ping timeout: 276 seconds]
<FromGitter>
<kingsleyh> @absolutejam_gitlab it works well if everyone is into it - but it's pretty expensive - I've worked in quite a few places that went all in on Cucumber, BDD, Concordion etc
<FromGitter>
<kingsleyh> I like it when the business provide the scenarios because they tend to be pretty awesome in term of coverage and cases I might miss etc
<FromGitter>
<watzon> Well typically they know how they want the product to work
<FromGitter>
<kingsleyh> especially in complex businesses
<FromGitter>
<kingsleyh> most of my recent work has been on banking, fintech and trading apps - and the business is always pretty complicated
absolutejam1 has joined #crystal-lang
absolutejam1 has quit [Ping timeout: 240 seconds]
alex`` has quit [Quit: WeeChat 2.6]
alexherbo2 has joined #crystal-lang
<FromGitter>
<kingsleyh> If I've got hold of the method is there any way I can see what annotations are on the method?