<FromGitter>
<isitaboat:matrix.org> likely a dumb question, but what's the equivalent of defined?(x) in crystal?
<FromGitter>
<Blacksmoke16> idt there is one
<FromGitter>
<Blacksmoke16> because it just wouldnt compile
<FromGitter>
<isitaboat:matrix.org> hmm - so I want to use a template that can be used in different ways...guess I have to (XX | nil) it and set that variable anyway?
<FromGitter>
<Blacksmoke16> got an example?
<FromGitter>
<isitaboat:matrix.org> ya; kemal - rendering a template with a layout; I want to have stuff in the <head> change depending on where the layout is used. e.g. index page vs a view page. In ruby I'd do <% if defined?(item) %> then sutff..... ⏎ ⏎ I've "fixed" it by defining item = nil, then doing <% if item %> for the routes that have a real item it works, otherwise it does the else. Kinda "less clean" than defined?
<FromGitter>
... ...but is really obvious lol...... thanks!