coffeecup
coffeecup copied to clipboard
menuitem tag doesn't work
The following valid CoffeeCup throws an error on compilation:
script '#button_template', type: 'text/html', ->
menuitem '.Button', data: {bind: 'text'}, ->
Try something like this for custom tags that are not currently included in CoffeeScript
script '#button_template', type: 'text/html', ->
tag 'menuitem', '.Button', data: {bind: 'text'}, ->
aha. I should've read the reference. Are empty attributes supported as well? as in, from AngularJS:
<html ng-app>
</html>
I've tried passing null, but it doesn't work:
html 'ng-app': null, ->
But this just yields an empty tag.