discourse/lib/generators/plugin/templates/plugin.rb.erb

Failed to ignore revisions in .git-blame-ignore-revs.

22 lines
659 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
# name: <%= name %>
# about: <%= @about %>
# version: 0.1
# authors: <%= @github_username %>
# url: https://github.com/<%= @github_username %>
register_asset 'stylesheets/common/<%= dasherized_name %>.scss'
register_asset 'stylesheets/desktop/<%= dasherized_name %>.scss', :desktop
register_asset 'stylesheets/mobile/<%= dasherized_name %>.scss', :mobile
enabled_site_setting :<%= underscored_name %>_enabled
PLUGIN_NAME ||= '<%= classified_name %>'
load File.expand_path('lib/<%= dasherized_name %>/engine.rb', __dir__)
after_initialize do
# https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb
end