coffeecup icon indicating copy to clipboard operation
coffeecup copied to clipboard

menuitem tag doesn't work

Open alexchandel opened this issue 12 years ago • 2 comments

The following valid CoffeeCup throws an error on compilation:

script '#button_template', type: 'text/html', ->
    menuitem '.Button', data: {bind: 'text'}, ->

alexchandel avatar Jul 14 '13 01:07 alexchandel

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'}, ->

gradus avatar Jul 15 '13 14:07 gradus

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.

alexchandel avatar Jul 19 '13 10:07 alexchandel