Add test for unscoped template variable case; compiles a block

This commit is contained in:
Colin Hicks 2013-02-15 12:12:22 -05:00
parent 9f4671ed41
commit 3802fa500e
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/template_local_scope.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __d = obj.obj || obj;
with (obj) {
__p += '<head><title>' +
((__t = ( title )) == null ? '' : __t) +
'</title></head>';
}
return __p
};

View File

@ -0,0 +1 @@
<head><title><%= title %></title></head>