Giter Club home page Giter Club logo

ember-script's Introduction

Build Status

EmberScript

EmberScript is a CoffeeScript-derived language which takes advantage of the Ember.js runtime. Ember constructs such as Inheritance, Mixins, Bindings, Observers, etc. are all first-class citizens within EmberScript.

Examples

class PostsController extends Ember.ArrayController
  trimmedPosts: ~>
    @content.slice(0, 3)

compiles to:

var PostsController;
var get$ = Ember.get;
PostsController = Ember.ArrayController.extend({
  trimmedPosts: Ember.computed(function () {
    return get$(this, 'content').slice(0, 3);
  }).property('content.@each')
});

For a more comprehensive list of live examples, check out the main EmberScript website.

Is this ready to use?

For the most part, but use at your own risk. See the todo list for details. It is recommended to use EmberScript side by side with javascript and/or coffeescript.

Installation

Ruby on Rails

If you are using Rails as your backend, simply add the following to your Gemfile:

gem 'ember_script-rails'

All assets ending in .em will be compiled by EmberScript.

Npm

sudo npm install -g ghempton/ember-script
ember-script --help

Development

make -j build test

ember-script's People

Contributors

abedra avatar audreyt avatar calvinmetcalf avatar constellation avatar devongovett avatar endangeredmassa avatar fgnass avatar ghempton avatar gkz avatar granttitus avatar iterion avatar jrozner avatar kevinmehall avatar kristianmandrup avatar logicmason avatar lydell avatar machty avatar mattparlane avatar michaelficarra avatar paulmillr avatar scatteredray avatar tobi avatar utkarshkukreti avatar valpackett avatar vendethiel avatar vjeux avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.