Skip to content

Commit b92342b

Browse files
committed
Fix TData Renderer.
1 parent 14aadb8 commit b92342b

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ var Content = exports.Content = (new Prototype()).extend(function(parent) {
182182
this.render = function(callback, _context) {
183183
var context = _.merge(this._context, _context);
184184
this._render(function(result) {
185-
_stringTemplate(result, context, callback);
185+
dataRender(context, function(context) {
186+
_stringTemplate(result, context, callback);
187+
});
186188
});
187189
};
188190

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "osws-templates",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Tools for generating, extending and rendering HTML.",
55
"keywords": [],
66
"author": "Open Source Web Standards <opensourcewebstandards@gmail.com> (http://osws.github.io/OSWS)",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# [OSWS](https://github.com/OSWS) [Templates](https://github.com/OSWS/OSWS-Templates) [0.2.1](https://github.com/OSWS/OSWS-Templates/wiki/0.2.1)
1+
# [OSWS](https://github.com/OSWS) [Templates](https://github.com/OSWS/OSWS-Templates) [0.2.2](https://github.com/OSWS/OSWS-Templates/wiki/0.2.2)
22

33
[documentation](https://github.com/OSWS/OSWS-Templates/wiki)

sources/el/content.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ var Content = exports.Content = (new Prototype()).extend(function(parent) {
3030
this.render = function(callback, _context) {
3131
var context = _.merge(this._context, _context);
3232
this._render(function(result) {
33-
_stringTemplate(result, context, callback);
33+
dataRender(context, function(context) {
34+
_stringTemplate(result, context, callback);
35+
});
3436
});
3537
};
3638

templates.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ var Content = exports.Content = (new Prototype()).extend(function(parent) {
181181
this.render = function(callback, _context) {
182182
var context = _.merge(this._context, _context);
183183
this._render(function(result) {
184-
_stringTemplate(result, context, callback);
184+
dataRender(context, function(context) {
185+
_stringTemplate(result, context, callback);
186+
});
185187
});
186188
};
187189

templates.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)