These are chat archives for jescalan/roots

4th
Dec 2015
Mathias Biilmann
@biilmann
Dec 04 2015 20:13
small roots questions - what’s the simplest way to expose a helper method to a template
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:17
you can do so in your locals object in app.coffee @biilmann
locals:
  myFn: ->
    # do something
Mathias Biilmann
@biilmann
Dec 04 2015 20:20
awesome, got it :)
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:21
:thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup:
Mathias Biilmann
@biilmann
Dec 04 2015 20:21
had just been using a small plugin setting roots.config.locals, but had the feeling that was not the most obvious way :P
Matt Rossi
@mordecai174
Dec 04 2015 20:21
mordecai174 here, not being helpful
sorry for the lack of response @fk
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:21
@mordecai174 is actually helpful
despite his comments
specifically with hip low poly designs
Florian Kissling
@fk
Dec 04 2015 20:22
hehehe … no worries @mordecai174 – all good!
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:22
did you get a working version going @fk?
Florian Kissling
@fk
Dec 04 2015 20:22
yep
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:23
:thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup:
Florian Kissling
@fk
Dec 04 2015 20:25
i have to admit that i paused that mojotech youtube video a bunch of times and i got stuck at nesting pages for a moment, but everything else was a breeze
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:25
at least you figured it out :)
Florian Kissling
@fk
Dec 04 2015 20:29
yep, and learned a few things – way more rewarding than just using a starter template
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:30
that’s the spirit! what are you working on… if I may ask?
Florian Kissling
@fk
Dec 04 2015 20:31
and while i'm at it: i want to say thank you to all people involved in roots – it really is fun and in my experience roots really lives up to what's stated on http://roots.cx/

… that bit:

Much like people would ask "Why should I use snapchat when I can just text a photo" or "Why should I use slack when I already have hipchat?", there is no logical answer other than that the experience is different, and in my opinion, much better -- tailored exactly to what you need. So just try it, and you just might find that you really like it.

what are you working on… if I may ask?

of course you may – i'm trying to improve my general javascript knowledge a bit (originally it was about webpack and react …), but at the same time i need to transfer an old client project that originally was built with webby (https://github.com/TwP/webby) to a new "static site generator"

Sam Saccone
@samccone
Dec 04 2015 20:58
Glad the video is so helpful :)
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 20:59
That voice should be on the radio
Florian Kissling
@fk
Dec 04 2015 21:10
@samccone it def. was … thanks for scrolling down all the way in init.coffee ;) :D
Sam Saccone
@samccone
Dec 04 2015 21:14
Just keep bothering @sethkrasnianski and maybe he will OSS it
:)
Seth Krasnianski
@sethkrasnianski
Dec 04 2015 21:15
it’s a possibility :sparkles:
Florian Kissling
@fk
Dec 04 2015 21:19
@samccone i'm good now, actually happy i didn't have a starter/boilerplate – more reward for me ^^
@samccone @sethkrasnianski just realized why i'm so familiar with your names: marionettejs v2
… damn
(spent my last 2,5 years in a SPA project where i refactored a 2 files of each a few thousand jquery spaghetti LOC to marionette v1; was super excited for v2 but the project development was frozen before i could)