Go to file
Konstantin Käfer cabbf4380c gitignore file
2011-01-25 14:44:09 -05:00
bin remove options that no longer work, fix #55 2011-01-25 09:46:35 -05:00
build (doc) comments 2010-06-15 18:56:16 -04:00
files Catch syntax errors. Also, don't let comment regex make weird behavior. Also, only let error() record, never let it throw. 2011-01-24 18:32:18 -05:00
lib/mess add names to functions to be more descriptive 2011-01-25 14:40:39 -05:00
test test file 2011-01-25 14:43:45 -05:00
.gitignore gitignore file 2011-01-25 14:44:09 -05:00
.ndistro add node-zipfile to ndistro 2011-01-24 12:37:50 -05:00
LICENSE moved to apache license 2010-03-04 14:46:41 -05:00
Makefile update test framework to use expresso 2011-01-20 14:41:27 -05:00
package.json add more dependencies to package.json 2011-01-20 18:50:01 -05:00
README.txt Updating readme 2011-01-23 21:08:45 -05:00

    
                               _)      
     __ `__ \   _ \  __|  __|   |  __| 
     |   |   |  __/\__ \\__ \   |\__ \ 
    _|  _|  _|\___|____/____/_) |____/ 
                            ___/       

    mess.js is an attempt to use less.js to
    compile cascadenik-formatted styles.

    it is inspired by but incompatible with 
    Cascadenik [1].


  = Changes from Cascadenik:

    - MML files are assumed to be JSON, not XML
    - Instead of the name attribute of the TextSymbolizer
      and ShieldSymbolizer being a part of the selector, it
      is a property of a rule. Thus the evaluation is less
      complex and one can use expressions in names.

    cascadenik:
    
      #world NAME {
        text-face-name: "Arial";
      }

    mess:

      #world {
        text-name: "NAME";
        text-face-name: "Arial";
      }

    - Pseudoelements are supported to append extra
      symbolizers onto single matched rules.

    #world {
      line-color: #fff;
      line-width: 3;
      }

      #world::outline {
        line-color: #000;
        line-width: 6;
        }

    - outline and inline are removed, having been replaced
      with pseudoelements.
    - names of styles in XML are derived from layer names,
      rather than being entirely autogenerated
    - less.js variables and expressions are supported
    - fontsets are supported by simply specifying multiple
      font names


  = Credits

    mess.js is based on less.js [2], a CSS compiler
    written by Alexis Sellier. It includes
    underscore.js [3].

    like less, mess.js provides a binary in bin/,
    named mess, although it is designed primarily
    for usage as a library.

  = Usage

      messc map_file.json

  = Authors

      Tom MacWright (tmcw)
      Konstantin Käfer (kkaefer)
      AJ Ashton (ajashton)

    [1]: https://github.com/mapnik/Cascadenik
    [2]: https://github.com/cloudhead/less.js
    [3]: https://github.com/documentcloud/underscore/