Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menuitem tag doesn't work #75

Open
alexchandel opened this issue Jul 14, 2013 · 2 comments
Open

menuitem tag doesn't work #75

alexchandel opened this issue Jul 14, 2013 · 2 comments

Comments

@alexchandel
Copy link

The following valid CoffeeCup throws an error on compilation:

script '#button_template', type: 'text/html', ->
    menuitem '.Button', data: {bind: 'text'}, ->
@gradus
Copy link
Owner

gradus commented Jul 15, 2013

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

@alexchandel
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants