We could start be defining a package Template::Pure::Component that works like the current system for when an action target is a Template::Pure object, just instead we'd parse something like
and we'd automatically want to pull out the script and style tags and add them to the head area as expected. A component should own its own data, and receive any dom its wrapping (and should be able to modify it.
Maybe the best way to to approach this is to skip the markup side and find do this exclusively on the directive side
I think we can start to sketch out what a component could be like. This would be a new allowed object type as an action target
We could start be defining a package Template::Pure::Component that works like the current system for when an action target is a Template::Pure object, just instead we'd parse something like
and we'd automatically want to pull out the script and style tags and add them to the head area as expected. A component should own its own data, and receive any dom its wrapping (and should be able to modify it.
Maybe the best way to to approach this is to skip the markup side and find do this exclusively on the directive side
and then
Perhaps the script and css bit should be separate variables?