/angular-cl2

Angular macros for ChlorineJS

Primary LanguageClojure

Angular-cl2

Angular macros for ChlorineJS.

Build Status

Prerequisites

You will need nodejs and Leiningen 2.0 or above installed.

Installation

Add angular-cl2 to your lein-npm-powered project:

;; project.clj
:node-dependencies [angular-cl2 "0.3.4-SNAPSHOT"]

Pull angular-cl2 to your machine:

lein npm install

Now you should have angular_cl2/src/core.cl2 in your node_modules directory. Include it in your ChlorineJs source file(s):

;; some-file.cl2
(load-file "angular_cl2/src/core.cl2")

Develope angular-cl2

Live coding

Have your files watched and auto-compiled:

lein cl2c auto dev

This will watch for changes and re-compile *.cl2 files to Javascript.

Now open an other terminal, have mocha run the tests:

lein npm run-script mocha-auto

Usage

See documents and example code at Angular-cl2's wiki

License

Copyright © 2013 Hoang Minh Thang Copyright © 2014 Hoang Minh Thang

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.