Another potential syntax (a)
sparty02 opened this issue · comments
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: