Skip to content

Commit

Permalink
fix uri
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi committed Dec 9, 2014
1 parent 9716fd9 commit 37ec8c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yog-swig",
"version": "0.0.17",
"version": "0.0.18",
"description": "custom swig template, add some tag or filter ",
"main": "index.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions tags/uri.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var exports = module.exports;

exports.compile = function(compiler, args, content, parents, options, blockName) {
return '_output += _ctx._yog.resolve(' + args.shift() + ');';
return '_output += _ctx._yog.getUrl(' + args.shift() + ');';
};

exports.parse = function(str, line, parser, types) {
return true;
};

exports.ends = true;
exports.ends = false;

0 comments on commit 37ec8c2

Please sign in to comment.