You are here: Foswiki>Tasks Web>Item1213 (29 Jun 2010, SvenDowideit)Edit Attach

Item1213: Document 'syntax' param in registerTagHandler

pencil
Priority: Low
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component: Documentation
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: SvenDowideit
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

ItemTemplate edit

Summary Document 'syntax' param in registerTagHandler
ReportedBy ArthurClemens
Codebase trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component Documentation
Priority Low
CurrentState Closed
WaitingFor
Checkins distro:3590b5fcfb59
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r2 - 29 Jun 2010, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy