mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
do not use _() in rt-class, fixes #179
This commit is contained in:
parent
5c730e8b95
commit
9dbff140cf
@ -30,7 +30,7 @@ const propsMergeFunction = `function mergeProps(inline,external) {
|
||||
}
|
||||
`;
|
||||
|
||||
const classSetTemplate = _.template('_(<%= classSet %>).transform(function(res, value, key){ if(value){ res.push(key); } }, []).join(" ")');
|
||||
const classSetTemplate = _.template('_.transform(<%= classSet %>, function(res, value, key){ if(value){ res.push(key); } }, []).join(" ")');
|
||||
|
||||
function getTagTemplateString(simpleTagTemplate, shouldCreateElement) {
|
||||
if (simpleTagTemplate) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user