Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
194
rated 0 times [  200] [ 6]  / answers: 1 / hits: 43020  / 13 Years ago, mon, october 10, 2011, 12:00:00

I'd like to know if there is a way to include a file in a coffee script.
Something like #include in C or require in PHP...


More From » include

 Answers
42

How about coffeescript-concat?




coffeescript-concat is a utility that preprocesses and concatenates
CoffeeScript source files.



It makes it easy to keep your CoffeeScript code in separate units and
still run them easily. You can keep your source logically separated
without the frustration of putting it all together to run or embed in
a web page. Additionally, coffeescript-concat will give you a single
sourcefile that will easily compile to a single Javascript file.



[#89691] Sunday, October 9, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaylynkarinam

Total Points: 740
Total Questions: 103
Total Answers: 103

Location: Liechtenstein
Member since Wed, Dec 8, 2021
3 Years ago
;