0:30 AM
imp joined the channel
1:48 AM
hvelarde|away is now known as hvelarde
3:03 AM
hvelarde has quit
3:39 AM
imp has quit
6:06 AM
cyp joined the channel
6:36 AM
agitator joined the channel
6:51 AM
agitator joined the channel
8:25 AM
brokencycle joined the channel
8:28 AM
crooksey joined the channel
8:28 AM
waveform joined the channel
8:32 AM
stevepiercy
raydeo i'm obviously not understanding something basic with jinja2, and I can't figure out how to debug it or fix it. base layout has this at the very end:
8:33 AM
{% include 'flash.jinja2' %}
8:33 AM
flash.jinja2 is in the same directory as layout.jinja (the base layout)
8:34 AM
in the child template: {% extends "../layout.jinja2" %}
8:34 AM
{{ render_flash('success', 'success') }}
8:34 AM
but all i get back is jinja2.exceptions.UndefinedError: 'render_flash' is undefined
8:35 AM
the only way it works for me is to copy-paste the macro into the child templates everywhere, and that's insane
8:36 AM
8:41 AM
argh, ffs, fat fingers again
9:00 AM
econoraptorman has quit
9:44 AM
Wu has quit
9:50 AM
Wu joined the channel
11:41 AM
hvelarde joined the channel
11:58 AM
agitator_ joined the channel
12:21 PM
Ergo joined the channel
13:17 PM
frispete joined the channel
13:21 PM
frispete_ has quit
13:26 PM
crooksey has quit
14:24 PM
chrisw joined the channel
14:54 PM
tiwula joined the channel
15:09 PM
erasmas joined the channel
15:10 PM
raydeo
steve you'll have to paste your layout too
15:48 PM
econoraptorman joined the channel
15:48 PM
prcutler[m]
17:34 PM
chrisw joined the channel
17:53 PM
hvelarde has quit
18:03 PM
hvelarde joined the channel
18:15 PM
stevepiercy
raydeo i think i got it sorted. basically base layout includes the macro, and in my view layout i needed to have an import in order to call render_flash. I was missing the import statement; somehow I had deleted it and never noticed.
18:16 PM
raydeo
ok, no idea what you're saying but I don't have any import statements
18:16 PM
you do you
18:16 PM
stevepiercy
prcutler[m] be my guest
18:16 PM
raydeo lemme gist what i have
18:21 PM
18:22 PM
raydeo
ok I mean that's totally different from what I described
18:22 PM
you changed my paste around
18:23 PM
if you like that then that's fine
18:23 PM
stevepiercy
well, i'd like to know how you pulled it off, cuz I tried about a half-dozen combinations until this worked
18:23 PM
raydeo
my paste was a single file, you broke it apart
18:23 PM
stevepiercy
the jinja2 docs don't really discuss it much
18:23 PM
raydeo
it had the render next to the macro
18:24 PM
then I just include that file where I want the flash mesages to show up
18:24 PM
stevepiercy
ooohhhhh i thought you said you included the macro in your base layout
18:24 PM
raydeo
the include you put in layout.jinja2 has no effect
18:25 PM
stevepiercy
no wonder it wasn't working
18:25 PM
i totally misunderstood
18:25 PM
raydeo
no I said I include the file :P
18:25 PM
atomekk joined the channel
18:26 PM
stevepiercy
reading comprehension has never been my strength, it's why i have to write things to understand what i've just read and why i write docs
18:26 PM
ok, i will try to unfuck this one more time
18:27 PM
unlike the supreme court nominee
18:27 PM
raydeo
topical
18:27 PM
stevepiercy
too soon?
18:28 PM
satoriprints
hi
18:35 PM
stevepiercy joined the channel
19:02 PM
dakra joined the channel
19:16 PM
Ergo joined the channel
19:16 PM
Ergo
19:16 PM
grab it while its hot
19:44 PM
stevepiercy
ouch! it burns!
19:58 PM
hvelarde is now known as hvelarde|away
20:02 PM
dfee joined the channel
21:31 PM
gxti joined the channel
21:34 PM
jpenny
ls
21:34 PM
sorry
22:57 PM
tiwula has quit
23:07 PM
brokencycle has quit