• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

language-ember

Atom Grammer Package for Ember Applications
  • #ember
  • #grammar
  • #handlebars
healthsparq
4.0.2 1,391
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Ember HTMLBars Highlighting

This package provides HMLBars/Glimmer syntax highlighting for template (.hbs) files as well as inline template declaration in JS files.

Syntax Highlighting

To activate syntax highlighting in template files select Ember Glimmer as the language. Glimmer highlighting is automatically applied to any inline template declaration in JS files.

Ember Inline Template Declaration

Ember component test files are automatically generated with inline template string syntax, eg:

this.render(hbs`
  {{#some-component}}
    Syntax highlighting is the best.
  {{/some-component}}
`);

But you can also declare templates for components using a tagged template string and the layout property!

import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
 
export default Ember.component.extend({
  // Component layout using tagged template string:
  layout: hbs`
    <span>Hello there, {{name}}</span>
  `
});

This package will match the hbs` ` declaration and apply syntax highlighting to template string contents.

Features

  • HTMLBars Comment Block Bindings on Cmd + /
  • Unescaped output (triple curlies) are flagged with wrapping .unescaped.block.htmlbars
  • Property/Component/Helper names flagged as string.of.property.function.component.name.htmlbars
  • All framework Ember helpers flagged as support.function.builtin.inline.htmlbars

Screenshot

See CONTRIBUTING.md for technical details.

Thank You

language-ember-htmlbars for ideas on regex patterns.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by