Permalink
Browse files

Update compiled files

  • Loading branch information...
1 parent 1de1864 commit 2113ee9065b7592137809f3ef4d3590bde6b1adc @fadrizul committed Sep 20, 2011
Showing with 4 additions and 5 deletions.
  1. +3 −4 compiled/parser.js
  2. +1 −1 compiled/twig.js
View
@@ -11,7 +11,7 @@ Parser = (function() {
this.tags = tags || {};
}
Parser.prototype.parseTokens = function() {
- var filterName, filters, i, index, nextIndex, part, parts, stack, tagname, token, varname, _i, _len, _len2, _ref;
+ var filters, i, index, nextIndex, part, parts, stack, tagname, token, varname, _i, _len, _len2, _ref;
stack = [[]];
index = 0;
_ref = this.rawTokens;
@@ -30,16 +30,15 @@ Parser = (function() {
part = parts[_i];
if (parts.hasOwnProperty(part)) {
parts = parts[part];
- filterName = part.match(/^\w+/);
}
if (x.LBracket.test(part)) {
filters.push({
- name: filter_name[0],
+ name: part.replace(/\(.+\)/, ""),
args: part.replace(x.Symbols, "").split(",")
});
} else {
filters.push({
- name: filter_name[0],
+ name: part,
args: []
});
}
View
@@ -9,7 +9,7 @@ Parser = require("./parser");
Compiler = require("./compiler");
tags = require("./tags");
widgets = require("./widgets");
-exports.version = "v0.0.3";
+exports.version = "v0.0.4";
exports.Parser = Parser;
exports.Compiler = Compiler;
fileRenderer = function(path, options, fn) {

0 comments on commit 2113ee9

Please sign in to comment.