compound component attributes

pull/1367/head
Rich Harris 8 years ago
parent 4d09a27334
commit caf4356d3d

@ -17,10 +17,8 @@ export default function visitComponent(
if (chunk.type === 'Text') { if (chunk.type === 'Text') {
return escapeTemplate(escape(chunk.data)); return escapeTemplate(escape(chunk.data));
} }
if (chunk.type === 'MustacheTag') {
const { snippet } = chunk.expression; return '${__escape( ' + chunk.snippet + ')}';
return '${__escape( ' + snippet + ')}';
}
} }
const bindingProps = node.bindings.map(binding => { const bindingProps = node.bindings.map(binding => {

Loading…
Cancel
Save