From 37ec8c27c323dcdee556bde14f79c4e1a517abf4 Mon Sep 17 00:00:00 2001 From: hefangshi Date: Tue, 9 Dec 2014 18:23:01 +0800 Subject: [PATCH] fix uri --- package.json | 2 +- tags/uri.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9793dde..6d8a680 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/tags/uri.js b/tags/uri.js index b47253b..ada3b0a 100644 --- a/tags/uri.js +++ b/tags/uri.js @@ -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; \ No newline at end of file +exports.ends = false; \ No newline at end of file