Skip to content

How to use a plugin

macourtney edited this page Sep 13, 2010 · 3 revisions

Added in version: 0.6

Plugins allow third parties to extend the capabilities of Conjure.

To include a plugin in your application, simply download the plugin and copy its directory to the vendor/plugins directory.

For example, to install the example plugin called simple-authentication, you can check it out from git hub at: git://github.com/macourtney/simple_authentication.git

If you check it out directly into your plugins directory, you should see a new simple_authentication directory.

To install the plugin, use the plugin script and pass it the install option. To install simple-authentication, use:

./run.bat script/plugin.clj install simple-authentication

Simple authentication will generate a bunch of files. If you later decide you do not want to use simple-authentication, you can uninstall it using the uninstall command of the plugin script:

./run.bat script/plugin.clj uninstall simple-authentication

After running uninstall, you’ll need to delete the simple-authentication directory from the vendor/plugins directory to complete the removal of the plugin from your app.

Note: any changes you made to the generated files will be lost when you uninstall simple-authentication and any references to the plugin or generated files must be removed or exceptions will occur.

Clone this wiki locally