I would like to use, and it appears suited, the \component
and related commands in ConTeXt. However, I would like to have multiple parameters to a given component e.g.
\startcomponent X
\sometexcommand{name} % where name is a parameter that varies the component
\stopcomponent
One way to accomplish this might be to set Lua variables as side-effects, but I was wondering if there was a way to directly pass arguments to components e.g.
\component[X][name=123]
Then use something like \structureuservariable{name}
If a component is not suited for this, is there a sensible alternative one might suggest?
module
instead of acomponent
. You can pass parameters to modules.