Skip to content

Commit

Permalink
release v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akdubya committed Jan 26, 2011
1 parent 42840ae commit 7469a94
Show file tree
Hide file tree
Showing 9 changed files with 206 additions and 152 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ In Node:

To render compiled templates in the browser:

<script src="dust-core-0.2.5.min.js"></script>
<script src="dust-core-0.3.0.min.js"></script>

Demo & Guide
------------
Expand Down
21 changes: 0 additions & 21 deletions dist/dust-core-0.2.5.min.js

This file was deleted.

35 changes: 15 additions & 20 deletions dist/dust-core-0.2.5.js → dist/dust-core-0.3.0.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Dust - Asynchronous Templating v0.2.5
// Dust - Asynchronous Templating v0.3.0
// http://akdubya.github.com/dustjs
//
// Copyright (c) 2010, Aleksander Williams
Expand Down Expand Up @@ -86,14 +86,14 @@ dust.isEmpty = function(value) {
};

dust.filter = function(string, auto, filters) {
var len = filters.length;

for (var i=0; i<len; i++) {
var name = filters[i];
if (name === "s") {
auto = null;
} else {
string = dust.filters[name](string);
if (filters) {
for (var i=0, len=filters.length; i<len; i++) {
var name = filters[i];
if (name === "s") {
auto = null;
} else {
string = dust.filters[name](string);
}
}
}
if (auto) {
Expand All @@ -103,16 +103,9 @@ dust.filter = function(string, auto, filters) {
};

dust.filters = {
h: function(value) {
return dust.escapeHtml(value);
},

j: function(value) {
return dust.escapeJs(value);
},

h: function(value) { return dust.escapeHtml(value); },
j: function(value) { return dust.escapeJs(value); },
u: encodeURI,

uc: encodeURIComponent
}

Expand Down Expand Up @@ -477,7 +470,7 @@ Tap.prototype.go = function(value) {
return value;
};

var HCHARS = /[&<>\"]/,
var HCHARS = new RegExp(/[&<>\"]/),
AMP = /&/g,
LT = /</g,
GT = />/g,
Expand Down Expand Up @@ -522,6 +515,8 @@ dust.escapeJs = function(s) {
})(dust);

if (typeof exports !== "undefined") {
require('./server')(dust);
if (typeof process !== "undefined") {
require('./server')(dust);
}
module.exports = dust;
}
21 changes: 21 additions & 0 deletions dist/dust-core-0.3.0.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7469a94

Please sign in to comment.