Permalink
Browse files

moved build files to dist folder, cleaned up template syntax

  • Loading branch information...
1 parent 6b59481 commit d6dd721fc467d517b3a71b6bc6d15f464fb0d257 @tbranyen committed Nov 6, 2011
Showing with 20 additions and 10 deletions.
  1. +3 −2 build/tool.js
  2. +6 −6 { → dist}/vertebrae.js
  3. +8 −0 dist/vertebrae.min.js
  4. +2 −2 lib/index.js
  5. +1 −0 test/index.html
View
@@ -15,7 +15,8 @@ var output = combyne(index, {
output.delimiters = {
START_PROP: "{(",
- END_PROP: ")}"
+ END_PROP: ")}",
+ FILTER: "@"
};
output.filters.add("include", function(name) {
@@ -24,4 +25,4 @@ output.filters.add("include", function(name) {
});
-fs.writeFile("vertebrae.js", output.render());
+fs.writeFile("./dist/vertebrae.js", output.render());
@@ -1,10 +1,10 @@
/* vertebrae.js 0.0.0
*
* jQuery Plugin to mock AJAX requests for Backbone applications.
- * Tim Branyen @tbranyen, Copyright 2011
+ * Tim Branyen 2011
* Dual licensed under the MIT or GPL Version 2 licenses.
*
- * Date Built: Sun, 06 Nov 2011 22:03:21 GMT
+ * Date Built: Sun, 06 Nov 2011 22:28:57 GMT
*/
(function(global) {
@@ -261,7 +261,7 @@ if (typeof Backbone !== "undefined") {
// Persistables
if (this.persist && (len = this.persist.length)) {
for (i = 0; i < len; i++) {
- this.persist[i].prototype.localStorage = new Backbone.Storage(this.profile |
+ this.persist[i].prototype.localStorage = new Backbone.Storage(this.profile || "");
}
}
@@ -271,8 +271,8 @@ if (typeof Backbone !== "undefined") {
_routes[key] = val;
// Add in localStorage support
- if (type = val.model |
- type.prototype.localStorage = new Backbone.Storage(val.profile |
+ if (type = val.model || val.collection) {
+ type.prototype.localStorage = new Backbone.Storage(val.profile || "");
}
});
@@ -281,7 +281,7 @@ if (typeof Backbone !== "undefined") {
return routeToRegExp(route).exec(url);
};
- return jQuery.vertebrae(this.routes |
+ return jQuery.vertebrae(this.routes || {});
}
};
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -18,11 +18,11 @@ var routeToRegExp = Backbone.Router.prototype._routeToRegExp;
// Load plugins
(function() {
if (typeof jQuery !== "undefined") {
- {("lib/plugins/jquery"|include)}
+ {("lib/plugins/jquery"@include)}
}
// Vendor stuff
- {("vendor/backbone.localStorage"|include)}
+ {("vendor/backbone.localStorage"@include)}
}).call(global);
// Allow for Backbone augmentation
View
@@ -14,6 +14,7 @@
<script src="core.js"></script>
<script src="json.js"></script>
<script src="routes.js"></script>
+ <script src="persistence.js"></script>
</head>
<body>
<h1 id="qunit-header">Vertebrae Test Suite</h1>

0 comments on commit d6dd721

Please sign in to comment.