Item1213: Document 'syntax' param in registerTagHandler
Priority: Low
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component: Documentation
Branches:
Foswiki.pm
:
=begin TML
---++ StaticMethod registerTagHandler( $tag, $fnref )
STATIC Add a tag handler to the function tag handlers.
* =$tag= name of the tag e.g. MYTAG
* =$fnref= Function to execute. Will be passed ($session, \%params, $web, $topic )
=cut
sub registerTagHandler {
my ( $tag, $fnref, $syntax ) = @_;
$functionTags{$tag} = \&$fnref;
if ( $syntax && $syntax eq 'context-free' ) {
$contextFreeSyntax{$tag} = 1;
}
}
Please document
syntax
.
--
ArthurClemens - 06 Mar 2009
younked the docco from
Item2231 for it :/
--
SvenDowideit - 29 Jun 2010