jsdf / sprockets-coffee-react

DEPRECATED – Sprockets preprocessor for CJSX (Coffeescript with React JSX markup)
MIT License
85 stars 29 forks source link

Bare option? #11

Open swrobel opened 8 years ago

swrobel commented 8 years ago

Is there any way to replicate the bare option available in command-line cjsx? -b, --bare compile without a top-level function wrapper

krazyjakee commented 8 years ago

I'm also looking for this. How do you pass any argument for that matter?

EDIT: Looks like ruby-coffee-react has an options argument that is not being used: https://github.com/jsdf/ruby-coffee-react/blob/master/lib/coffee_react.rb#L34

I don't understand this code but it looks like there is an opportunity to pass that second argument: https://github.com/jsdf/sprockets-coffee-react/blob/master/lib/sprockets/coffee-react.rb#L17