Skip to content

Compiler adding line numbers to twig output #112

Open
@morgannunan

Description

@morgannunan

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 %}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions