<FromGitter>
<codenoid> i miss that, hmm, sorry,, & thanks
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 258 seconds]
zipR4ND has joined #crystal-lang
zipR4ND has quit [Ping timeout: 268 seconds]
<FromGitter>
<schoening> I find it confusing that I can pass blocks to functions that don't have a block parameter... can I pass a block to any method?
<FromGitter>
<schoening> (I'm not from a ruby background)
<FromGitter>
<sdogruyol> first is the subview the second is the main layout
<FromGitter>
<codingphasedotcom> lets say we have a layout "views/layouts/main.ecr", content page "views/homepage", and then scripts include "views/includes/scripts.ecr"
<FromGitter>
<sdogruyol> yeah
<FromGitter>
<sdogruyol> you use `render "views/includes/scripts.ecr"` in your `ecr`
<FromGitter>
<sdogruyol> inside your view
<FromGitter>
<codingphasedotcom> what i'm getting is the text "render "views/includes/scripts.ecr"" when i go to the "/" route
<FromGitter>
<codingphasedotcom> getting this error now
<FromGitter>
<sdogruyol> is you path correct?
<FromGitter>
<codingphasedotcom> do i have to put a full path
<FromGitter>
<codingphasedotcom> like "./includes/scritps.ecr" or can I do "include/scripts.ecr"
<FromGitter>
<sdogruyol> no, it's relative to your current folder so `"./includes/..."`
xmonader2 has joined #crystal-lang
xmonader has quit [Ping timeout: 240 seconds]
<FromGitter>
<codingphasedotcom> ok i got the yield_content and content for working. It has to be in the view to work. but can't get to use an include how you are telling me
bjz has joined #crystal-lang
<FromGitter>
<sdogruyol> not sure what you're doing tbh :P
<FromGitter>
<codingphasedotcom> ok so i'm going to break it down
lacour has joined #crystal-lang
<jhass>
stereosteve: could be, this really just should be specified as an out param in the lib binding
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<codingphasedotcom> I want to be able to include a navigation file "views/includes/navigation.ecr" inside of the master layout "views/layouts/main.ecr" when i go to the route "/" i want the content to show "views/pages/homepage"
<FromGitter>
<codingphasedotcom> @sdogruyol finally got it i have to put a full path <%= render "src/views/includes/navigation.ecr" %> I put this on the layout. I will be making a video tutorial on this.
<FromGitter>
<sdogruyol> oh
<FromGitter>
<sdogruyol> yeah you need to be careful about your `src` and `views` file structure
<jhass>
you shouldn't need to explicitly do the uninitialized
<jhass>
the compiler should do it for you
<FromGitter>
<stereosteve> okay I think I’m figuring it out… there is a problem further down in the `check_error!` function too. I am getting a leveldb error string out now
<FromGitter>
<stereosteve> will try a few more things and make a PR. Thanks for your help.
<jhass>
yw
<FromGitter>
<codingphasedotcom> @sdogruyol thanks will be making a video tutorial on this. Been getting alot of my youtube viewers trying out crystal and kemal lol trying to convert people from node one at a time
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter>
<CodelessFuture> Hi, when you generate a new project in crystal the .gitignore contains a /bin/ directory entry. What goes inside?
<FromGitter>
<sdogruyol> you binary
<FromGitter>
<sdogruyol> when you do `shards build`
Ven has joined #crystal-lang
Ven is now known as Guest55325
Guest55325 has quit [Ping timeout: 240 seconds]
<FromGitter>
<CodelessFuture> @sdogruyol so when you build with crystal build —release you don’t have an independent binary?
Ven_ has joined #crystal-lang
<FromGitter>
<sdogruyol> What do you mean by independent?
A124 has quit [Quit: '']
<FromGitter>
<CodelessFuture> Whats the difference between the binary created by shards build and crystal build?
<FromGitter>
<sdogruyol> Nothing
<FromGitter>
<sdogruyol> Just convention
bjz has joined #crystal-lang
<FromGitter>
<CodelessFuture> 8003412 2312 -rwxr-xr-x 1 max staff 1180128 15 Apr 22:10 prova -> generated by crystal build —release
<FromGitter>
<CodelessFuture> 8005734 6184 -rwxr-xr-x 1 max staff 3163312 15 Apr 22:57 prova -> generated by shards build
<FromGitter>
<CodelessFuture> 3 times bigger….
<BlaXpirit>
CodelessFuture, why dont you compare just `crystal build`
<FromGitter>
<sdogruyol> you can also do --release with shards build
<FromGitter>
<CodelessFuture> Ok I think that since there is a crystal deps command shards in optional…probably an old package now integrated in crystal?
<FromGitter>
<CodelessFuture> I’m new and trying to understand the right things to do
<BlaXpirit>
CodelessFuture, crystal deps used to be a different simpler thing, now it's an alias to shards
<BlaXpirit>
hard to say which of them is preferred
<FromGitter>
<CodelessFuture> I’m playing with Crystal and Kemal last couple of day and I want to try for some project from next week and I want to implement a methodologi
<FromGitter>
<CodelessFuture> Methodology
<FromGitter>
<CodelessFuture> From project creation to deploy
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
splitty_ has quit [Read error: Connection reset by peer]
splitty_ has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #crystal-lang
lacour has quit [Quit: Leaving]
<BlaXpirit>
i remember hearing something like... if you have more than one `yield` in a method, it's gonna get bad performance or something.. what is the actual effect of this?