Permalink
Browse files

First shot

  • Loading branch information...
0 parents commit adf23312cdb7e4d52c65436df2032cf85e748947 Dan Williams committed Sep 10, 2011
Showing with 2,792 additions and 0 deletions.
  1. +22 −0 LICENSE
  2. +34 −0 Readme.md
  3. +2,736 −0 jade.js
22 LICENSE
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2009-2011 Dan Williams <dan@rocketlabsdev.com>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,34 @@
+# require-jade
+
+A [Jade](http://jade-lang.org/) loader plugin for [RequireJS](http://requirejs.org).
+
+It is known to work with RequireJS 0.26.0+.
+
+In development, it uses XMLHttpRequest to fetch the .jade files, so you can only
+fetch files that are on the same domain as the HTML page, and most browsers place
+restrictions on using XMLHttpRequest from local file URLs, so use a web server to
+serve your .jade files.
+
+## Usage
+
+1) Download the latest release version of jade.js. It includes Jade (0.15.4).
+
+2) Reference Jade files via the jade! plugin name:
+
+ require(['jade!userview'], function (userView) {
+ $('.user').html(userView());
+ });
+
+# Optimizing
+
+jade.js includes optimizer instructions. To use the activate the instructions just include:
+
+ pragmasOnSave: {
+ excludeJade : true
+ }
+
+## License
+
+Available via the MIT or new BSD license.
+
+The Jade parts are governed by [the Jade license](https://github.com/visionmedia/jade/blob/master/LICENSE).
Oops, something went wrong.

0 comments on commit adf2331

Please sign in to comment.