EmberScript is an actively used programming language created in 2012.

7Years Old 471Users 0Jobs
  • EmberScript ranks in the top 50% of languages
  • the EmberScript website
  • EmberScript on github
  • EmberScript first appeared in 2012
  • file extensions for EmberScript include em and emberscript
  • I have 39 facts about EmberScript. what would you like to know? email me and let me know how I can help.

Example code from Linguist:

class App.FromNowView extends Ember.View
    tagName: 'time'
    template: Ember.Handlebars.compile '{{view.output}}'
    output: ~>
        return moment(@value).fromNow()

    didInsertElement: ->

    tick: ->
        f = ->
            @notifyPropertyChange 'output'

        nextTick = Ember.run.later(this, f, 1000)
        @set 'nextTick', nextTick

    willDestroyElement: ->
        nextTick = @nextTick
        Ember.run.cancel nextTick

Ember.Handlebars.helper 'fromNow', App.FromNowView

Trending Repos

repo stars description

Last updated November 21st, 2019