pretzel icon indicating copy to clipboard operation
pretzel copied to clipboard

Pretzel plugins list / distribution

Open laedit opened this issue 10 years ago • 7 comments
trafficstars

So Pretzel has the ability to use plugins now, and people ultimately will start to creates some, like @AndreyAkinshin for Categories and Tags pages.

In order to share those plugins I think we need at least to list the known plugins on a wiki page, and maybe provide some way to download a plugin and install it in the right folder through a pretzel command.

@shiftkey, @JakeGinnivan what are your thoughts about this?

laedit avatar Mar 11 '15 21:03 laedit

@laedit, it is a great idea, I like it.

AndreyAkinshin avatar Mar 11 '15 21:03 AndreyAkinshin

Sounds good. Maybe via Nuget or something?

Also, is it worth looking at #217. That could make writing plugins much more lightweight

JakeGinnivan avatar Mar 11 '15 21:03 JakeGinnivan

Yeah, but I think that both plugin type (dll or scriptcs) needs an easy way to dowload/install. Nuget can do the trick, I need to study that, thanks for the idea :)

laedit avatar Mar 12 '15 05:03 laedit

I'd like to write an plugin or two (e.g. porting redirect_from). I can't find a Pretzel (or Pretzel.Logic) NuGet package. How are potential plugin authors expected to write a plugin?

thoemmi avatar Jun 23 '15 20:06 thoemmi

Pretzel is available only through Chocolatey or GitHub Releases. You only need to reference the exe directly from your plugin project. But when I'll have the time to release the next version of Pretzel you'll have the possibility to create a plugin with scriptcs and in that case there is no need to reference the exe. I plan to write some doc about the extensibility but I haven't the time lately.

laedit avatar Jun 29 '15 07:06 laedit

I wrote two "classic" plugins implementing the ITransform interface, Pretzel.RedirectFrom and Pretzel.Sitemap, and I had to add pretzel.exe to the repositories instead of referencing a nuget package. :confused:

I wasn't able to setup working unit tests for my projects because several assemblies are merged into Pretzel. Maybe Scriptcs is a better way for writing plugins. I'll have a look at the sources to understand it, otherwise I'll wait for your documentation :wink:

thoemmi avatar Jun 29 '15 08:06 thoemmi

It's not ideal but I don't know if it's worth it to make a Nuget package only for plugins. But yeah, ScriptCs is a very cool way for writing plugins :smiley:

laedit avatar Jun 29 '15 08:06 laedit