I've actually found that maintaining dynamic toolbox categories isn't
all that bad. Since I'm declaring all of my custom blocks in my code
anyway, I just add an attribute to each one that says which category
it belongs to and what toolbox XML it needs. I then have a function
that returns a closure for the callback, and all that closure does is
loop over the relevant blocks, returning the XML.
The only thing I end up having to do manually is defining the
categories in the toolbox.xml file. There's probably a way to avoid
doing this, too, but I haven't bothered searching for it.
/s/ Adam
> --
> You received this message because you are subscribed to the Google Groups "Blockly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
blockly+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.