Skip to content

Commit

Permalink
Add test for unscoped template variable case; compiles a block
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhicks committed Feb 15, 2013
1 parent 9f4671e commit 3802fa5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/expected/local_scope.js
@@ -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 change: 1 addition & 0 deletions test/fixtures/template_local_scope.html
@@ -0,0 +1 @@
<head><title><%= title %></title></head>

0 comments on commit 3802fa5

Please sign in to comment.