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

not show the data within the tag attributes #2470

Closed
AlexisSniffer opened this issue Jul 31, 2016 · 6 comments
Closed

not show the data within the tag attributes #2470

AlexisSniffer opened this issue Jul 31, 2016 · 6 comments

Comments

@AlexisSniffer
Copy link

AlexisSniffer commented Jul 31, 2016

not show the data within the tag attributes

example
a(href="#{item.example}") #{item.example}

output
a(href="#{item.example}") Example

should be
output
a(href="Example") Example

probe library with jade and if it works, but not pug

@TimothyGu
Copy link
Member

See #2305. Pug is incompatible with Jade.

@AlexisSniffer
Copy link
Author

You not understand, I was using pug, but I get that error and had to change my files to jade. It is supposed to pug and jade should function the same.

@TimothyGu
Copy link
Member

@AlexisSniffer, Pug = Jade 2.0, but Jade 2.0 ≠ Jade 1.x. The feature you used is a Jade 1.x feature/hack.

@ForbesLindesay
Copy link
Member

Interpolation is not enabled in attribute values in pug. Please use:

a(href=item.example) #{item.example}

instead.

@ForbesLindesay
Copy link
Member

Or, even shorter:

a(href=item.example)= item.example

@AlexisSniffer
Copy link
Author

thanks...

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

3 participants