-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Allow "none" as an option for attributeSeparator #102
Comments
e.g.: div(
class="test"
:style="'color: red'" // <- this line has a `:` and can break your code/syntax
) |
that just looks like something that shouldn't be done lol but I kind of surprised that breaks your code... what frameworks does that break? it doesn't in vue template="pug" |
Sorry for my rush comment yesterday :) You can read some parts here #13 I tried following in pughtml (cause I use div(
class="test"
:bind="'bind'"
:bind2="'bind2'"
@click="click()"
@click2="click2()"
) Maybe the update Or maybe it always was only an angular problem 🤷♂️ I remember that pug-lint also complains about such problems Aside that, feel free to start with a PR plugin-pug/src/options/index.ts Line 3 in 4795af5
If you need any help, feel free to ask and I can also start writing a |
At least for the Vue syntax, something has apparently changed at some point 🤷♂️ |
sounds good! sorry for the late response, it's been a busy couple weeks :) I'll see about posting a PR sometime next week. Thanks! |
We've been using attributes with |
* Allow "none" as an option for attributeSeparator Closes #102 * Add unit tests and note for angular syntax * Remove unused import * Fix linting errors
Thank you @Shinigami92 for the help with my PRs and the swift merge and release! |
Request / Idea
pug does not require commas following the attribute definitions, so can we add one more setting option to
attributeSeparator
so it can bealways || as-needed || none
?Input
Expected Output
Additional Context
The text was updated successfully, but these errors were encountered: