Skip to content

Commit

Permalink
Merge pull request #32 from jwellner/fix-capture
Browse files Browse the repository at this point in the history
Fix #31 capture in foreach loop
  • Loading branch information
umakantp committed Oct 23, 2018
2 parents 8a5b78a + 24e81a3 commit 6168e50
Show file tree
Hide file tree
Showing 7 changed files with 717 additions and 706 deletions.
7 changes: 3 additions & 4 deletions dist/jsmart.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* jSmart JavaScript template engine (v3.0.3)
* jSmart JavaScript template engine (v3.1.0)
* https://github.com/umakantp/jsmart
*
* Copyright 2011-2017, Umakant Patil <me at umakantpatil dot com>
* Max Miroshnikov <miroshnikov at gmail dot com>
* https://opensource.org/licenses/MIT
*
* Date: 2018-01-11T13:18Z
* Date: 2018-10-17T13:13Z
*/
(function (factory) {
'use strict'
Expand Down Expand Up @@ -1817,7 +1817,6 @@
capture: {
process: function (node, data) {
var params = this.getActualParamValues(node.params, data)
node.name = ('cap-' + node.params.name)
var content = this.process(node.subTree, data)
if (typeof content !== 'undefined') {
data = content.data
Expand Down Expand Up @@ -2349,7 +2348,7 @@
}
}
}
var version = '3.0.3'
var version = '3.1.0'

/*
Define jsmart constructor. jSmart object just stores,
Expand Down
4 changes: 2 additions & 2 deletions dist/jsmart.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/requirejs/js/jsmart.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/simple/jsmart.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6168e50

Please sign in to comment.