a
a copied to clipboard
Another potential syntax (a)
Here's a suggestion for another potential syntax that looks even more like decorator annotations and removes the need for the .for DSL.
(a).RouteConfig([
{ path: '/' }
])
(a).View({
template: '...'
})
(MyController)
function MyController () {}
FWIW, I tinkered around with this syntax and got it to work:
https://github.com/sparty02/a/commit/977723eeb2c57563b8200291fbd93b49a2edddf7