Where should I put external "libs"?

Hi again,

again a question about tags:

I am currently working on a tag wich returns a syntax highlightet code and wanted to use geshi to achive that, but I don’t know where I should put the geshi-specific files (since site/tags is for tags). Is there a folder to place those or can I safely put them in tags?

Greetings
koffeingeladen

I put mine in a separate folder in the Kirby root directory.

I would tend to put it in the site directory, where all site-or-theme-specific stuff goes. Like site/lib/geshi or site/geshi.

I think Kirby has a property or method for getting the site directory’s location (which may change), so you can avoid hard-coding it. See: http://getkirby.com/docs/advanced/customized-folder-setup

You can put it in site/plugins, where it is automatically loaded by Kirby and available from your tag. If you don’t want to load it at every request, you can just put it anywhere (the previous posters are both correct).