Skip to content

chlorinejs/cl2-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chlorine service

Chlorine compiling service to use with Plunker

Start server

Start the server

lein ring server

or

lein run

Usage

  • Include compiled core-cl2 library for your strategy. (You don't need this if 'bare' strategy is used.)
<script src="{host}/{strategy}/prelude.js"></script>
  • Include your cl2 script. Yes, the path is in compiling service's server instead of a relative one. The service will look at each request's referer header to determine URL to the cl2 script then fetch and serve its compiled counterpart to users.
<script src="{host}/{strategy}/script.cl2"></script>

where {HOST} can be any host where this software is running. {strategy} can be one of these: bare, prod, prod-compate, dev

Examples

A simple AngularJS example

Compiling errors

License

Copyright (C) 2012-2014 Hoang Minh Thang

Distributed under the Eclipse Public License, the same as Clojure.

About

Chlorine compiling service to use with Plunker (http://plnkr.co/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published