Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-08-30 00:44:12

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Improved plugin template

I’ve put together an improved template for plugin developers:

http://vigilant.tv/documents/tp/zem_tpl.php.txt

Features:

  • Help text is now in Textile format
  • No need to escape quotes in your code
  • Plugin code syntax will be checked at compile time

Since the code is now inline, rather than an escaped string, it will be displayed correctly by syntax-highlighting editors.

Use it as you would the old template: copy the file to abc_myplugin.php, edit the appropriate sections, and run it at the command line or load it in a browser to compile.

More detailed instructions are in the file.


Alex

Offline

#2 2004-08-30 00:51:16

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Improved plugin template

Nicely done – encourages me to try my hand at a plugin someday. :)

Offline

Board footer

Powered by FluxBB