Sha256: af61da9b6c62bb0bc1363857f8293f54411972e0d8ccf94e8e708c7a4ab994d2

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

class <%= js_app_name %>.RootView extends <%= js_app_name %>.LayoutView
  name: "root"
  template: HandlebarsTemplates["root"]

do ->
  instance = null
  <%= js_app_name %>.RootView.getInstance = (target) ->
    if not instance
      instance = new <%= js_app_name %>.RootView
      instance.appendTo target || document.body
    instance

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thorax-rails-1.0.0 lib/generators/thorax/install/templates/root.coffee
thorax-rails-0.1.8 lib/generators/thorax/install/templates/root.coffee