These are chat archives for jescalan/roots

2nd
Sep 2014
Jeff Escalante
@jescalan
Sep 02 2014 15:09
oh sorry, you can just call the template
it's a function
templates.your_template()
pass in an object if you have variables in there
Adam Argyle
@argyleink
Sep 02 2014 15:55
oh yeah, another week of bug smashing, code building fun! woooooohoooooo
templates.js is in my js/ dir, templates.js is being loaded with require, i can see the contents of the file in chrome's inspector, BUT i don't have a window.templates module, so i don't have templates.gridItem like i expect
Adam Argyle
@argyleink
Sep 02 2014 17:11
what's the best way to use nib with stylus?
or is roots already doing most the goodies of nib?
Jeff Escalante
@jescalan
Sep 02 2014 17:15
im not sure i totally understand the templates issue
yeah axis is built on nib
so you have all of nib plus if you have kept axis
check out jenius/axis for more info there
Adam Argyle
@argyleink
Sep 02 2014 17:18
cool, i was reading through axis this morning
i'm happy with the css output, now mentally skipping any previous notions of using nib
the template issue, i just dont have window.templates, but the script is being generated by roots and I'm properly importing it into the front end
Jeff Escalante
@jescalan
Sep 02 2014 21:36
are you including js/templates.js on to your page?
Adam Argyle
@argyleink
Sep 02 2014 23:48
yup, but it's not available via window.templates
i can see my template in templates.js even, just no method or module to use it