mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 23:56:43 +08:00
d40d241e72
help will add helpful comments in the various generated files
17 lines
399 B
Plaintext
17 lines
399 B
Plaintext
import { withPluginApi } from "discourse/lib/plugin-api";
|
|
|
|
function initialize<%= classified_name %>(api) {
|
|
<% if @options['help'] %>
|
|
// see app/assets/javascripts/discourse/lib/plugin-api
|
|
// for the functions available via the api object
|
|
<% end %>
|
|
}
|
|
|
|
export default {
|
|
name: "<%= dasherized_name %>",
|
|
|
|
initialize() {
|
|
withPluginApi("0.8.24", initialize<%= classified_name %>);
|
|
}
|
|
};
|