Is there a way to include file in coffee script?

后端 未结 6 1501
温柔的废话
温柔的废话 2020-12-16 10:10

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...

6条回答
  •  [愿得一人]
    2020-12-16 11:17

    You can try this library I made to solve this same problem coffee-stir its very simple. Just type #include and the name of the file that you want to include

    #include MyBaseClass.coffee
    

    For details http://beastjavascript.github.io/Coffee-Stir/

提交回复
热议问题