Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 808 Bytes

README.md

File metadata and controls

53 lines (36 loc) · 808 Bytes

coffee-includer

With coffee-includer you can finally include files with proper intendation.

Installation

npm install coffee-includer -g

Usage

Include statements

main.coffee

foo = ->
  bar()
  #intend include statement according to current scope
  #=include <path/to/file.coffee>

file.coffee

do awsome_things in coding unless
  awsome_things is boring

output.coffee

foo = ->
  bar()
  #file.coffee contents is placed, where you need it!
  do awsome_things in coding unless
    awsome_things is boring

CLI command

coffee-includer main.coffee ./build/output.coffee

Looking for gulp plugin?

License

MIT