Is there a way to include file in coffee script?

后端 未结 6 1504
温柔的废话
温柔的废话 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 10:50

    Rails uses sprockets to do this, and this syntax has been adapted to https://www.npmjs.org/package/grunt-sprockets-directives. Works well for me.

提交回复
热议问题