0.1.2 • Published 10 years ago

precc v0.1.2

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

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.

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago