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

Unsupported language for grammar 'HTML (Mustache)'. #123

Closed
dottodot opened this issue Oct 20, 2014 · 3 comments
Closed

Unsupported language for grammar 'HTML (Mustache)'. #123

dottodot opened this issue Oct 20, 2014 · 3 comments

Comments

@dottodot
Copy link

When I'm trying to beautify a handlebars file, I get the error of

Unsupported language for grammar 'HTML (Mustache)'.

Any ideas?

@Glavin001
Copy link
Owner

Handlebars has a different grammar name: Handlebars, see https://github.com/Glavin001/atom-beautify/blob/master/lib/language-options.coffee#L162

You should change the grammar of your file to Handlebars instead of HTML (Mustache). I think it is control-shift-L to change grammar of current working file.

I will:

  • add HTML (Mustache) as another grammar that is treated as Handlebars

Thanks for making this issue.

@Glavin001
Copy link
Owner

Before

<h1>{{header}}</h1>
{{#bug}}
{{/bug}}

{{#items}}
{{#first}}
<li><strong>{{name}}</strong></li>
{{/first}}
{{#link}}
<li><a href="{{url}}">{{name}}</a></li>
{{/link}}
{{/items}}

{{#empty}}
<p>The list is empty.</p>
{{/empty}}

After

<h1>{{header}}</h1>
{{#bug}}
{{/bug}}

{{#items}}
  {{#first}}
    <li><strong>{{name}}</strong>
    </li>
  {{/first}}
  {{#link}}
  <li><a href="{{url}}">{{name}}</a>
  </li>
  {{/link}}
{{/items}}

{{#empty}}
  <p>The list is empty.</p>
{{/empty}}

@Glavin001
Copy link
Owner

Published to v0.15.0

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

No branches or pull requests

2 participants