mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
add function wrap
This commit is contained in:
parent
f9c7afd8ec
commit
c43f6c59aa
@ -15,7 +15,7 @@ var ifTemplate = _.template("((<%= condition %>)?(<%= body %>):null)");
|
||||
var classSetTemplate = _.template("React.addons.classSet(<%= classSet %>)");
|
||||
var tagTemplate = _.template("<%= name %>.apply(this,_.flatten([<%= props %>].concat([<%= children %>])))");
|
||||
var commentTemplate = _.template(" /* <%= data %> */ ");
|
||||
var templateTemplate = _.template("define([<%= requirePaths %>], function (<%= requireNames %>) {\n <%= injectedFunctions %>\nreturn <%= body %>\n});");
|
||||
var templateTemplate = _.template("define([<%= requirePaths %>], function (<%= requireNames %>) {\n <%= injectedFunctions %>\nreturn function(){ return <%= body %>};\n});");
|
||||
|
||||
var templateProp = "rt-repeat";
|
||||
var ifProp = "rt-if";
|
||||
|
@ -2,5 +2,7 @@ define([
|
||||
'react',
|
||||
'lodash'
|
||||
], function (React, _) {
|
||||
return function () {
|
||||
return React.DOM.div.apply(this, _.flatten([{}].concat([])));
|
||||
};
|
||||
});
|
@ -2,6 +2,7 @@ define([
|
||||
'react',
|
||||
'lodash'
|
||||
], function (React, _) {
|
||||
return function () {
|
||||
return React.DOM.div.apply(this, _.flatten([{}].concat([
|
||||
React.DOM.div.apply(this, _.flatten([{
|
||||
'style': {
|
||||
@ -30,4 +31,5 @@ define([
|
||||
!this.props.editorState.previewMode ? React.DOM.div.apply(this, _.flatten([{}].concat(['left bar']))) : null
|
||||
])))
|
||||
])));
|
||||
};
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user