NAME

CoffeeMill

DESCRIPTION

CoffeeMill is a Movable Type plugin that helps to use coffee script in Movable Type template.

INSTALL

Copy (or SymLink) mt-plugin-coffee-mill/plugins/CoffeeMill/ to (MT_HOME)/plugins/CoffeeMill/ Also copy (or SymLink) mt-plugin-coffee-mill/mt-static/plugins/CoffeeMill/ to (MT_STATIC)/plugins/CoffeeMill

USAGE

  • STEP1

    Just create new Index Template, but with *.coffee in Output File.

  • STEP2

    Write coffee script.

  • STEP3

    Save, then script will automatically be compiled to Javascript, and to be published as *.js file.

USING MT TAGS IN COFFEE SCRIPT

When you want to put MT tags in coffee script, need to wrap each MT tag in block comment.

###<mt:if name="danger">###
alert "DANGER!"
###</mt:if>###

NOTE

Templates with *.coffee outfile are recognized as having *.js outfile in template listing screen.

SEE ALSO

Coffee Script https://github.com/jashkenas/coffee-script

AUTHOR

Akira Sawada

LICENSES

Released under the MIT License

This package includes copy of a part of Coffee Script. Coffee Script is written by Jeremy Ashkenas and Released under the MIT License. See the COPYING file.