Module: Kango::Templates
- Defined in:
- lib/kango/templates.rb
Class Method Summary collapse
Class Method Details
.gemfile ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/kango/templates.rb', line 3 def self.gemfile <<-EOF source 'https://rubygems.org' gem 'kango', '~> #{Kango::VERSION}' EOF end |
.main_coffee ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/kango/templates.rb', line 11 def self.main_coffee <<-EOF MyExtension = -> kango.ui.browserButton.addEventListener kango.ui.browserButton.event.COMMAND, => @._onCommand() MyExtension:: = _onCommand: -> kango.browser.tabs.create url: "http://kangoextensions.com/" extension = new MyExtension() EOF end |