|Newbie questions about Pliant
How to use plugins?
|Message posted by thomasb on 2002/11/29 11:23:34
|The FullPliant documentation says that I should create a file
"/custom/domain/computer/run.pli", but that does not seem to be correct.
|Message posted by hubert.tonneau on 2002/11/29 13:27:06
|On my computer, it is:
Just replace 'hubert.heliogroup.fr' with the full name of your computer
or your domain, or 'universal'
All this is implemened in 'the_plugin' function in module
|Message posted by thomasb on 2002/11/29 13:49:08
|Ok, but what about modules with more than one plugin, eg. the ftp-server.
/pliant/language/basic/plugin.pli is so simple that I am not sure I
understand what really happens :)
|Message posted by hubert.tonneau on 2002/11/29 13:55:26
Each plugin in the standard source is assigned an identifier provided in the
'plugin' instruction, and each replacement in custom tree is matched through
the same identifier provided in the 'custom' instruction.
If you want to add several specific piece of code to a single Pliant module,
you will have several 'custom' instructions in your custom module.
|Message posted by thomasb on 2002/11/29 14:08:03
|Thanks! That made things a lot clearer.