rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: rejetto on February 02, 2010, 01:36:49 PM

Title: plugin
Post by: rejetto on February 02, 2010, 01:36:49 PM
i'm thinking of a plugin system for HFS, based on XML + macros scripting.
this is still at a design stage.

You'll find all details in this wiki page.
http://www.rejetto.com/wiki/index.php/HFS:_plugins_design

i guess we may need something to handle extra files.
we should focus on real needs. it's not meant to be very comprehensive system at this stage. it should be initially quick and easy to make, but open for future extensions.
Title: Re: plugin
Post by: SilentPliz on February 02, 2010, 01:42:58 PM
Good idea ! ;)
Title: Re: plugin
Post by: Mars on February 02, 2010, 01:49:30 PM
Will this plugins be based on the same principle as packages  of smf?
Title: Re: plugin
Post by: rejetto on February 02, 2010, 06:22:49 PM
only slightly similar.
at the moment i don't think the plugin should make any change to the template text or the events file.
all the stuff should be applied by HFS on the fly, as for the "diff template".
Title: Re: plugin
Post by: rejetto on February 03, 2010, 11:48:13 AM
i moved all details to a wiki page, so that it will be easier to trace changes.
http://www.rejetto.com/wiki/index.php/HFS:_plugins_design
Title: Re: plugin
Post by: Mars on February 03, 2010, 09:27:35 PM
It would be good if the treatment and the analysis of plugins made entirely from a file plugins.pas, this not to overload main.pas which is already laborious.  (On the same theme quite the treatment of the macros would have been able to be separated in a file macros.pas what would have allowed a simpler comparison between the main.pas of the 2.2f and 2.3 beta.)

I have just crossed the wiki on plugins, my question is the following one:

Have you some elements of comparison on internet which would allow us to encircle better than will be effectively the usage of a plugins (as comparison, the macro are similar in the php but under another shape.)
Will plugins be close to scripts IRC for example? ???

Nice this piece of news 'routes' that sets hfs, it promises new sleepless nights in perspective ....... especially for our friend silentpliz  ;D

Title: Re: plugin
Post by: rejetto on February 08, 2010, 01:39:17 PM
> this not to overload main.pas which is already laborious. 

you are right, and a long time ago i already tried to move cbMacros() to a different file (just splitting, by using directive $I) and found some features of the delphi IDE not working in the splitted file.
i don't know why i didn't think of just making a unit/lib. maybe i was drunk at the time.
from #254 you'll get it in a different file. thank you for making it come to mind.

> Have you some elements of comparison on internet which would allow us to encircle better than will be effectively the usage of a plugins

i didn't understand

> Will plugins be close to scripts IRC for example? ???

i never saw (m)irc scripts