By mmgalea
via cloudmark.github.com
Published: Jun 20 2012 / 18:22
Ever wanted to include a file (js or coffee) from local disk or a remote location directly into a coffee script file without the need of copying it and pasting it directly in the file? I really needed this at work and wrote a small coffee script pre-processor to allow coffee scripts to have #= include tags. I am submitting it to community to help others with the same need.
Tweet
SaveShareSend
Tags: ajax, gui, javascript, other languages
Comments
devdanke replied ago:
If you build your project with Maven, there's another way to join together (A.K.A. include) Coffeescript files. The coffee-maven-plugin sends the compiled output of many coffeescript files to a single output file.
Details about the coffee-maven-plugin:
https://github.com/talios/coffee-maven-plugin/blob/develop/README.md
The plugin makes it easier for a Java programmer to use Coffeescript. The plugin's creator is Mark Derricutt.
mmgalea replied ago:
Thanks for the pointer. Looks really cool.
Voters For This Link (4)
Voters Against This Link (1)