patbenatar / rbexy

A Ruby template language and component framework inspired by JSX and React
MIT License
34 stars 5 forks source link

AST Transform not called for props of a component passed to another component as a prop #78

Closed patbenatar closed 3 years ago

patbenatar commented 3 years ago

Given the below, the transform handler should be called for class="foo" but it isn't.

<OneThing two={<TwoThing class="foo" />} />
config.transforms.register(Rbexy::Nodes::HTMLAttr, Rbexy::Nodes::ComponentProp) do |node, context|
  # ...
end