Ember.js Did It Again. Single File Components Ahead Of The Competition

Tom Smykowski
2 min readFeb 19, 2024

For many years Ember used separate files for the template logic.

But it changed. Ember.js offers a format to which developers can slowly migrate.

The format will be contained in .gjs extension files. Each such file can host one, or more components.

The syntax is similar to what we know from other frameworks like Vue.js. There’s a special template tag that marks the piece of file that defines the template.

--

--

Tom Smykowski

I'm on a mission to have 20 000 followers. Help me achieve this goal and become one!