Skip to content

Commit

Permalink
Merge pull request #3 from f-o-r/fix/global-yr
Browse files Browse the repository at this point in the history
Fix for resolve yate runtime object.
  • Loading branch information
Vlad Kurkin authored Nov 21, 2017
2 parents 79dff14 + c551cda commit 5940d00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"name": "yate",
"description": "Yet Another Template Engine",
"version": "0.0.82",
"version": "0.0.83",
"homepage": "https://github.com/pasaran/yate",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion templates/js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// На первое время, шаблоны (и соответственно matcher) выводятся только на верхнем уровне.

module
var yr = yr || require('yate/lib/runtime.js');
var yr = yr || this.yr || require('yate/lib/runtime.js');

(function() {

Expand Down

0 comments on commit 5940d00

Please sign in to comment.