These are chat archives for jescalan/roots

26th
Jul 2015
swarage
@swarage
Jul 26 2015 00:59
hey guys I just discovered roots, and I was looking around when I came across the css function in the _layout.jade file. what does that function do?
Mathias Biilmann
@biilmann
Jul 26 2015 01:00
It inserts the CSS from the CSS pipeline
swarage
@swarage
Jul 26 2015 01:01
so if I have something like style1.sass, and style2.sass in /assets/css, then they will be compiled and inserted into the layout?
Henry Snopek
@hhsnopek
Jul 26 2015 01:03
Mhmm :)
swarage
@swarage
Jul 26 2015 01:04
thanks! One more question: say I want to keep track of all the pages I've built and I want to generate a navbar, is there a way to store all the pages as a variable to load into _layout.jade?
Sergio Forés
@t0t
Jul 26 2015 12:34
@swarage I did something like this by using a mixin https://github.com/t0t/maderlim/blob/master/views/lib/components/_nav-main.jade

I'm having doubts requering *.js file in main.coffee. I used mobile = require './mobile.js' in main.coffee, but no idea on how configmobile.js` to enqueue the scripts. ```
module.exports = function() {

// var element = document.getElementsByClassName('tabsitemtitle');
var element = $('.tabsitemtitle');

// create a simple instance
// by default, it only adds horizontal recognizers
var mc = new Hammer(element);

// listen to events...
mc.on("tap", function(event) {
alert('tapppp!');
// myElement.textContent = ev.type +" gesture detected.";
});

element.on("click", function(event) {
alert('click');
// myElement.textContent = ev.type +" gesture detected.";
});

};```
Any help would be apreciated

Sergio Forés
@t0t
Jul 26 2015 16:15
Hello again, I get a console error Hammer is not definedbut I believe my module.exports and require...are fine. Please could anybody take a look to my code and help me to include Hammerjs library properly? https://github.com/t0t/maderlim/blob/master/assets/js/mobile.js
I tried to add Hammerjs library in the build in app.coffee:
browserify
      files: [
        'bower_components/slick-carousel/slick/slick.min.js'
        'bower_components/hammerjs/hammer.js'
        'assets/js/main.coffee'
      ]
      out: 'js/build.js'
  ]
Thomas Rodriguez
@trodrigu
Jul 26 2015 18:31
Has anyone
used parse or firbase with their roots deployments?