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

[Bug] Not highlighted Jinja2 syntax in HTML attributes #5

Open
Kristinita opened this issue Jan 25, 2017 · 1 comment
Open

[Bug] Not highlighted Jinja2 syntax in HTML attributes #5

Kristinita opened this issue Jan 25, 2017 · 1 comment
Labels

Comments

@Kristinita
Copy link

Kristinita commented Jan 25, 2017

1. Summary

Jinja2 syntax not highlighted in attributes of HTML tags like in other places of HTML document.

2. Expected behavior

Part of my page.html file:

    <link rel="stylesheet" href="{{SITEURL}}/themes/sashapelican/statica/css/general/image_{{page.iconleftorright}}.css">
    <link rel="stylesheet" type="text/css" href="{{SITEURL}}/themes/sashapelican/statica/bower-components/rainbow/themes/css/rainbow.css">
    <!-- Открытие ссылок в новой вкладке -->
    <base target="_blank">
</head>

<body>
    <!-- Бэкграунд aside -->
    <aside class="sidebar" style="background-image: url({{SITEURL}}/themes/sashapelican/statica/images/aside/{{page.sashaicon}}.jpg)">
        <div class="cover">
            <div class="cover-text">
                <!-- Заголовок aside -->
                <h1>{{page.pagetitle}}</h1>
            </div>
        </div>
    </aside>
    <!-- Текст -->
    <main class="content-wrapper">
        <h1 class="SashaHeader">{{page.pagetitle}}</h1> {{page.content}}
    </main>
</body>

Expected

See {{page.pagetitle}} and {{page.content}}.

3. Actual behavior

See {{SITEURL}} and {{page.sashaicon}}.

Scopes for {{SITEURL}} and {{page.sashaicon}} It is the same as in the near text.

4. Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I install Jinja2 via Package Control → I set Jinja2/Syntaxes/HTML (Jinja2) syntax for HTML files with Jinja2 templates → I open my page.html file → I get actual behavior.

5. Environment

Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126

Thanks.

@Kristinita Kristinita changed the title [Bug] Not highlighted Jinja2 syntax in CSS attributes [Bug] Not highlighted Jinja2 syntax in HTML attributes Jan 25, 2017
@everyonesdesign
Copy link

everyonesdesign commented Jan 25, 2017

@Kristinita Thank you very much for your report, I'll try to research the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants