Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Support for attributes without parenthesis #18

Open
maddes opened this issue Dec 3, 2014 · 1 comment
Open

Support for attributes without parenthesis #18

maddes opened this issue Dec 3, 2014 · 1 comment

Comments

@maddes
Copy link

maddes commented Dec 3, 2014

I haven't looked the code yet, but will ASAP.

In the meanwhile, I let here my idea.
The parenthesis could be replaced by a simple comma, for example, this:

a(href: '/login', title: 'View login page') Login

Could be written like this:

a, href: '/login', title: 'View login page' Login

The rationale is simple: is there a comma? then an attribute is comming

@kylekatarnls
Copy link

But it's not Jade syntax. jade.php must match with the JS engine.
However, with the JS one, we can write it with no comma:

a(href="/login" title="View...") Login

I implemented it in my fork.

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

No branches or pull requests

2 participants