| dg-* variant... if i may make a suggestion here, you could use the type as part of the name: so +load becomes lifecycle.load *value would be control.value +click would be event.click @raw would be meta.raw . because i think only _ . and - are allowed. you want to keep - for complex names: control.some-value and _ doesn't feel right. maybe you want to choose other names. aurelia uses this approach with different names. i didn't want to influence you to choose aurelias names, so i picked those from the table on https://daggerjs.org/#/directive/introduction keeping the names in line with the terminology you use makes it easy to remember them and also to look them up. (what is a lifecycle? i can just search for it. the only downside is that lifecycle in particular is long, so if that is used frequently, a shorter name might be preferable. maybe just 'cycle') oh and while we are talking about about verbosity. i saw one router example that looked a bit verbose. but maybe that's because it tries to show all the options you can set on a route. a minimalist example would be nice to see there in contrast. (maybe there is one and i just didn't find it) |
The original react router demo as a comparison: https://codepen.io/pshrmn/pen/YZXZqM?editors=0010