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

object's property is not acceptable parameter if 1st parameter is object literal. #2479

Closed
comfuture opened this issue Aug 6, 2012 · 1 comment

Comments

@comfuture
Copy link

I'm trying to use Jaml as internal html builder on coffee-script.
but there's small troubles.

as you see below: function call syntax accepts normal variable as 2nd parameter following 1st object literal parameter. but objects's property or array's index does not.

subject = 'subject variable'
ctx = subject: 'subject property'

div(cls: 'subject', subject) # it's OK
div(cls: 'subject', ctx.subject) # it's NG
div(cls: 'subject', cts['subject']) # also NG

of course, I have another choice that wrap object with { and }.
is it some bug of jison lexer syntax?

@michaelficarra
Copy link
Collaborator

Duplicate of #2449.

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

No branches or pull requests

2 participants