Closed chriseppstein closed 4 years ago
@abritinthebay We need to fix the code that analyzes and rewrites mustache and sub expressions to look at the params in addition to the argument hash.
I think the only change that's needed is for this code to examine node.params
too:
https://github.com/linkedin/css-blocks/blob/master/packages/@css-blocks/glimmer/src/ElementAnalyzer.ts#L145
in params, we should allow <namespace>:scope
as well as <namespace>:<state-attribute>
but <namespace>:class
should be an error because that always requires a value.
right now we require the hash style arguments even for things like
block:scope
which are just set totrue
. Because helpers can take positional arguments, we can also acceptblock:scope
without a "value" assigned to it.