Add test for unscoped template variable case; compiles a block
This commit is contained in:
parent
9f4671ed41
commit
3802fa500e
13
test/expected/local_scope.js
Normal file
13
test/expected/local_scope.js
Normal 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
|
||||
};
|
1
test/fixtures/template_local_scope.html
vendored
Normal file
1
test/fixtures/template_local_scope.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
<head><title><%= title %></title></head>
|
Loading…
Reference in New Issue
Block a user