These are chat archives for LearnBoost/stylus

22nd
May 2015
kevin olson
@acidjazz
May 22 2015 00:11
something like
      stylus(post.data, post.options).define('bob', 'suzy').render(function(error, output) {

        if (error) {
          res.writeHead(500, {'Content-Type': 'text/html'});
          res.end(error.message); 
        } else {
          res.writeHead(200, {'Content-Type': 'text/html'});
          res.end(output);
        }

      });
how do i access bob in stylus?
kevin olson
@acidjazz
May 22 2015 01:04
so i figured out how to access bob, but now my issue is what if suzy was an object, like suzy.q.title
suzy['q']['title'] doesnt work nor suzy.q.title nor #{suzy.q.title} etc