RejectedSoftware Forums

Sign up

Newlines and optional comma in tag attributes

When writing tags, I have to use the following syntax:
tag(attr="value", attr2="value")

It can become quite difficult to read when exceeds my line length.

Jade allowes this (no comma):
tag(attr="value" attr2="value")

and this (with optional comma):
tag(attr="value"

 attr2="value")

Is it possible to add this?

Re: Newlines and optional comma in tag attributes

Am 30.08.2012 15:03, schrieb simendsjo:

When writing tags, I have to use the following syntax:
tag(attr="value", attr2="value")

It can become quite difficult to read when exceeds my line length.

Jade allowes this (no comma):
tag(attr="value" attr2="value")

and this (with optional comma):
tag(attr="value"

attr2="value")

Is it possible to add this?

I also saw this in the Jade documentation searching for the boolean
attribute topic just before you posted ;) It's definitely possible but
also a bit more involved because of the structure of the parser. I'll
put it on the TODO list anyway.