• Stars
    star
    1,043
  • Rank 44,174 (Top 0.9 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js

Build Status

Emblem.js

Emblem.js is an indentation-based templating language that prints Handlebars.js templates. Specifically, it targets Ember.js templates.

Emblem's syntax most closely resembles that of the Slim templating language. Please see the Emblem docs site for a full explanation of the syntax.

Also check out the Embercast on Emblem.js

Installation with Ember-CLI

To use Emblem with Ember-CLI, use the ember-cli-emblem addon.

Handlebars Version Dependencies

As of Emblem 0.5.0, the compiler is really a template printer. Previous versions compiled to Handlebars AST nodes and were forced to target specific versions of Handlebars. The move to printing has eliminated that restriction, and Emblem 0.5.0 should be compatible with any version of Handlebars.

For posterity, here is a history of Emblem and Handelbars compatibility across revisions.

  • HTMLBars: Emblem 0.5.0+
  • Handlebars 2.0.0: Use Emblem ~0.4.0, or 0.5.0+
  • Handlebars 1.0.0: Use Emblem ~0.3.0, or 0.5.0+
  • Handlebars <= 1.0.0.rc4: Use Emblem <= 0.2.9, or 0.5.0+

Using Emblem in your application

Previous versions of Emblem have supported a "vanilla" Handlebars mode. The intent was that Ember-specific helpers could be avoided.

Emblem 0.5.0 dropped support for vanilla template compilation, but we would like to bring it back. Please refer to VANILLA_HANDLEBARS.md for more context.

Building Emblem.js

Clone the repo, then run:

yarn install
ember build

To run tests in the browser, run:

ember test --serve

The tests will be available at http://localhost:4200/tests/.

To run tests in Headless Chrome and Node (which is how CI runs), use:

ember test

Reporting Bugs

If you find a bug in Emblem syntax, please try to reproduce it in its simplest form with this JSBin before reporting an issue, which will help me nail down the source of the issue.

Bitdeli Badge

Emblem was authored and released by Alex Matchneer (@machty).

The Emblem 0.5.0 release was generously funded by Vestorly. Vestorly is a technology company solving the content marketing problem for individual professionals, small businesses, and the enterprises that support them. Vestorly's user interface is built entirely with Ember.js and modern web technologies. Vestorly is hiring!

More Repositories

1

ember-concurrency

ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
JavaScript
690
star
2

ember-concurrency-decorators

Task decorators for ember-concurrency 1.x (merged into ember-concurrency 2.0)
TypeScript
70
star
3

ember-navigator

A better router/navigator for mobile Ember apps, inspired by React Navigation
TypeScript
31
star
4

ember-jeopardy

Ember.js implementation of Jeopardy, prepared for the NYC Ember meetup
Ruby
29
star
5

ember-run-loop-visual

Interactive visualization of the Ember Run Loop
JavaScript
28
star
6

ember-maybe-import-regenerator

An ember addon that imports regenerator-runtime if you didn't already include it via babel.includePolyfill
JavaScript
20
star
7

ember-constraint-router

DEPRECATED: please use https://github.com/machty/ember-navigator instead
TypeScript
16
star
8

emblem-rails-demo

Emblem.js connected to Rails
Ruby
15
star
9

svelte-concurrency

JavaScript
15
star
10

ember-falling-bricks

A JS game involving falling bricks, written in Ember.js
JavaScript
13
star
11

rails-edge-async-test

Testing out Async 2.0, Ruby 3.1 Scheduler, and Fiber-safe ActiveRecord::ConnectionPool
Ruby
12
star
12

react-concurrency

Experiment for extracting e-c and porting to react
JavaScript
8
star
13

ec-prezo

ember-concurrency slides first presented at Ember NYC, 2/25/2016
HTML
7
star
14

emblem-brunch

Emblem.js for Brunch.io
CoffeeScript
7
star
15

ember-cli-jsx

Transpiler your ember-cli .jsx files into js
JavaScript
5
star
16

emblem-site

Homepage for emblemjs.com
JavaScript
4
star
17

ember-electron-midi-experiment

ember-concurrency + ember-electron + midi + ableton live
JavaScript
4
star
18

emblem-component

Emblem package for
JavaScript
2
star
19

reader

GA Ember Rails Training App
Ruby
2
star
20

meatloaf

Sass-based dynamic sprite generator for Rails 3.1
Ruby
2
star
21

emberspective

A CSS3-driven 3D presentation of what's new/planned in the Ember.js world
Ruby
2
star
22

broccoli-es7-decorator-jshint-guards

JavaScript
1
star
23

machty.github.com

My Git Page
HTML
1
star
24

ember-loading-error-substates-demo

A demo of loading/error substates coming to Ember.js 1.2
JavaScript
1
star
25

ember-concurrency-global-meetup-slides

HTML
1
star
26

d3-set

The card game Set implemented in D3.js
JavaScript
1
star
27

barber-emblem

Precompilation for Emblem.js
Ruby
1
star
28

ember-better-actions

Scratch pad for the better actions RFC i've been working on
JavaScript
1
star