2018-08-29 19:32:41 +08:00
|
|
|
# name: <%= name %>
|
2019-07-28 00:21:44 +08:00
|
|
|
# about: <%= @about %>
|
2018-08-29 19:32:41 +08:00
|
|
|
# version: 0.1
|
2018-08-30 18:03:30 +08:00
|
|
|
# authors: <%= @github_username %>
|
|
|
|
# url: https://github.com/<%= @github_username %>
|
2018-08-29 19:32:41 +08:00
|
|
|
|
|
|
|
register_asset "stylesheets/common/<%= dasherized_name %>.scss"
|
2019-07-28 00:21:44 +08:00
|
|
|
register_asset "stylesheets/desktop/<%= dasherized_name %>.scss"
|
|
|
|
register_asset "stylesheets/mobile/<%= dasherized_name %>.scss"
|
2018-08-29 19:32:41 +08:00
|
|
|
|
|
|
|
enabled_site_setting :<%= underscored_name %>_enabled
|
|
|
|
|
2019-07-28 00:21:44 +08:00
|
|
|
PLUGIN_NAME ||= "<%= classified_name %>".freeze
|
2018-08-29 19:32:41 +08:00
|
|
|
|
2019-07-28 00:21:44 +08:00
|
|
|
load File.expand_path('../lib/<%= dasherized_name %>/engine.rb', __FILE__)
|
2018-08-30 22:38:25 +08:00
|
|
|
|
2019-07-28 00:21:44 +08:00
|
|
|
after_initialize do
|
|
|
|
# https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb
|
2018-08-29 19:32:41 +08:00
|
|
|
end
|