coffeedoc / codo

CoffeeScript API documentation generator. It's like YARD but for CoffeeScript!
Other
624 stars 92 forks source link

Preprocess files? #176

Closed KyleAMathews closed 10 years ago

KyleAMathews commented 10 years ago

I'm writing a React app that uses the Coffee JSX syntax supported by https://github.com/jsdf/coffee-react

Codo doesn't like the .cjsx files as it chokes on the XML JSX syntax. Is there a way to preprocess code so I can transform the XML first into normal Coffeescript before Codo sees it?

inossidabile commented 10 years ago

If there's a tool to convert .cjsx to .coffee – run it first then run Codo (for instance you can use a bash-script to do that). You don't need the pre-processing feature since raw Coffee-Script is the only format that Codo can actually parse.