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

Add support for interpolation #40

Closed
Applelo opened this issue Nov 14, 2019 · 2 comments · Fixed by #43
Closed

Add support for interpolation #40

Applelo opened this issue Nov 14, 2019 · 2 comments · Fixed by #43
Assignees
Labels
type: bug Functionality that does not work as intended/expected

Comments

@Applelo
Copy link

Applelo commented Nov 14, 2019

Can you add the support for interpolation ?
See https://pugjs.org/language/interpolation.html

@Applelo Applelo changed the title Add support for tag interpolation Add support for interpolation Nov 14, 2019
@Shinigami92 Shinigami92 self-assigned this Nov 14, 2019
@Shinigami92
Copy link
Member

Please provide me some code, so I can create a test for that

I heavily using TDD -> https://github.com/prettier/plugin-pug/tree/master/test/issues

@Applelo
Copy link
Author

Applelo commented Nov 14, 2019

Ok no problem :) So I tried some different test with interpolation work but not with this case:

 - const el = 'div';
 - const test = 'hello';
 #{el}.test
   | !{text}

@Shinigami92 Shinigami92 added the type: bug Functionality that does not work as intended/expected label May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants