junstyle / vscode-django-support

django formatter, highlight...
https://marketplace.visualstudio.com/items?itemName=junstyle.vscode-django-support
Apache License 2.0
4 stars 0 forks source link

ERROR: Invalid Token. Expected stringEnd but found tag start "{%" instead. #10

Closed clevermiraz closed 11 months ago

clevermiraz commented 11 months ago
<div class="card-header">
    <h5 class="card-title">Distributors</h5>
    <a href="{% url 'forum:distributor_create_url' %}" class="btn btn-primary">Add Distributor</a>
</div>

I got this error here. <a href="{% url 'forum:distributor_create_url' %}" class="btn btn-primary">Add Distributor</a>

How can I resolve that Issue?

Error Is: ERROR: Invalid Token. Expected stringEnd but found tag start "{%" instead.

junstyle commented 11 months ago

https://github.com/junstyle/vscode-django-support/issues/7

clevermiraz commented 11 months ago

Okay, So how can i ignore this Rule Globally? Using prettier.

Not in Scoped.

junstyle commented 11 months ago

https://github.com/junstyle/prettier-plugin-django#features

ignore the block

clevermiraz commented 11 months ago

https://github.com/junstyle/prettier-plugin-django#features

ignore the block

Okay, I know i can Ignore the block.

But is there anyway ignore rule globally?

junstyle commented 11 months ago

a new version has been published, now you can use {%...%} in html property value d462fcc51610a5e685dd14510c518216e32286dc

clevermiraz commented 11 months ago

a new version has been published, now you can use {%...%} in html property value d462fcc

Awww Thanks, 😊😊