Skip to content

Handle special assignment &attributes #11

Description

@TorbenKoehn

Tale Jade supports a different kind of assignments than the Node.js version does.

See the bottom of the official documentation for reference.

In Jade, you can cross-assign any attribute from multiple values without having to repeat the attribute name

e.g.

a(href=$url, href='/sub-url', href='/some-file.html')

vs

a&href($url, '/sub-url', '/some-file.html')

Node.js jade doesn't support this behaviour and the &-operator works differently.

In Node.js jade you have &attributes, which cross-assigns attributes on an element (passed by an array or object)
It also doesn't support multiple parameters.

In any case, we need downward-compatibility to Node.js jade, so the Tale jade &attributes should be handled differently from &-assignments and actually.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions