gradus/coffeecup — pull request #31 by bobzoller (2012-05-25 22:41:08+00:00)
Title: fix coffeecup in the browser

I ran into two issues using coffeecup.js in the browser:

first: IE8 improperly rendered ids when using the shortcut syntax, so

div '#foo', 'bar'

rendered

bar

(this was an existing bug in CoffeeKup... I think it's actually an improper use of CoffeeScript -- it doesn't strings guarantee String to be enumerable). This closes [issue #12](https://github.com/gradus/coffeecup/issues/12).

second: requiring stylus was done without a guard to ensure we're in the node enviroment (or at least one that knows what "require('stylus')" means). This change might be shortsighted -- open to feedback if it is.

--Bob