bluewings / pug-as-jsx-loader

MIT License
188 stars 15 forks source link

Automatically updates the js file that imports the template. #15

Closed bluewings closed 6 years ago

bluewings commented 6 years ago

check this!

Tree(nodes='{nodes}', onChange='{this.handleNodesChange}')
  | {({ node, ...rest }) =>
  Expandable(node='{node}', __jsx='{...rest}')
    TreeNode(node='{node}', __jsx='{...rest}',
      selected='{!!uniqueIdMap[node.id]}',
      onClick='{this.handleItemToggle}')
  | }

span
  h1 {dict[uniqueId]}