Browse Source

update plugin mini-HOWTO

pull/1639/head
bsp2 6 years ago
parent
commit
91ac4881d6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      plugin_mini_howto.md

+ 1
- 1
plugin_mini_howto.md View File

@@ -49,7 +49,7 @@ RACK_PLUGIN_DECLARE($(PLUGINNAME));
5. Rewrite the static modules initializations (`Model *model$(MODULENAME)> = Model::create<..>(..);`) as functions:
~~~
RACK_PLUGIN_MODEL_INIT($(PLUGINNAME), $(MODULENAME)) {
Model *model = Model::create<$(MODULENAME), $(MODULENAME)Widget>("cf", "$(MODULENAME)", "$(MODULEDISPLAYNAME)", ..);
Model *model = Model::create<$(MODULENAME), $(MODULENAME)Widget>($(PLUGINNAME), "$(MODULENAME)", "$(MODULEDISPLAYNAME)", ..);
return model;
}
~~~


Loading…
Cancel
Save