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

Compiler adding line numbers to twig output #112

Open
morgannunan opened this issue Aug 13, 2020 · 0 comments
Open

Compiler adding line numbers to twig output #112

morgannunan opened this issue Aug 13, 2020 · 0 comments

Comments

@morgannunan
Copy link

If I have a HAML file that looks like this:

- block body
  !!!
  %html
    %head
      %title = fn('wp_title')
    %body
      - if not fn('is_page','cv')
        something

MtHaml will compile it to this:

{% block body %}
  <!DOCTYPE html>
  <html>
    <head>
      <title>{{ fn('wp_title') }}</title>
    </head>
    <body>
{% line 7 %}      {% if not fn('is_page','cv') %}
        something
      {% endif %}
    </body>
  </html>
{% endblock %}

MtHaml is adding these line numbers in places, like {% line 7 %}.

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

1 participant