Sha256: 933d3ccf31b3c8be5fac9cf015e7d50e59a90d12bb6bfb7b37fa5be7f898301d

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

require 'bundler'
Bundler.setup :default, :development
$LOAD_PATH << 'app'
require 'assets'

require './%{underscored_name}'

Clearwater::HotLoader.start

class %{titleized_name}Dev < %{titleized_name}
  route do |r|
    r.on('clearwater_hot_loader') { r.run Clearwater::HotLoader }

    instance_exec(r, &self.class.superclass.route_block)
  end

  def app_title
    '%{titleized_name} [DEV]'
  end

  def client_app
    'dev'
  end

  def additional_markup
    <<~HTML
      <div id="grand-central-dev-tools"></div>
    HTML
  end
end

use Rack::CommonLogger
run %{titleized_name}Dev

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
clearwater-roda-0.3.0 templates/dev.ru
clearwater-roda-0.2.4 templates/dev.ru
clearwater-roda-0.2.3 templates/dev.ru
clearwater-roda-0.2.2 templates/dev.ru
clearwater-roda-0.2.1 templates/dev.ru
clearwater-roda-0.2.0 templates/dev.ru