Skip to content

zurborg/precc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

precc

precc is a pre-processor for coffeescript. It allows to include other coffee-script files with proper indentation handling.

Syntax

To include another file into your script, use the following command:

#_include filename

This includes the file filename.coffee at the current position.

Indentation handling

Assume you have the following script:

multiply = (x, y) ->
  #_include method

and method.coffee contains:

x * y

then the result is:

multiply = (x, y) ->
  #----------------------------------------------------------------------------#
  # from <./method.coffee>
  x * y
  #----------------------------------------------------------------------------#

Usage

precc comes as a command-line tool called precc. Invoked without any argument, it reads from standard input. Multiple files as arguments are concatenated together.

About

pre-processor for coffeescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published