%expand%%null( ** auth module %module(%fqppath(/docs/inc/init.htx)) ** default, show syntax page %if(%not(%form(func)) ,%fset(func,1. Syntax) ) %fset(func,%replace(%form(func),:,_C_)) ** show header and left bar )%expand(%include(%fqppath(/header.htx))) %if(%not(%exists(%fqppath(funcs/%form(func)))) , %null(** search for functions starting with the string specified) %set(count,0) %set(results, %try(%dir(%fqppath(funcs)/%form(func)* ,
  • %fname%%++(count)%fset(func,%fname%) )) ) %if(%equ(%count%,0) , %set(results, %try(%dir(%fqppath(funcs)/* ,%if(%wcmatch(%include(%fqppath(funcs)/%fname%),*%func%*) ,
  • %fname%%++(count)%fset(func,%fname%) ) )) ) ) %if(%equ(%count%,0) ,

    Function '%form(func)' not found

    ,%equ(%count%,1) ,%redirect(index.html?group=%url-encode(%form(group))&func=%url-encode(%form(func))) ,

    Search results

    ) , %null(** else load function documentation, since it is available) %set(func,) %set(group,) %set(name,) %expand(%include(%fqppath(funcs/%form(func))))

    %name%

    %if(%or(%description%,%example%) ,

    Syntax

    )
    %syntax%
    %if(%description% , %set(prevdl,)

    Description

    %define(href,%name%,url,name) %replace(%rxsplit(%safe-expand(%html-quote(%replace(%description%,
    ,%lf%)),href),[%cr%]?[%lf%] ,%if(%equal(%left(%token%,2)," ") ,   %token%
    ,%token%
    ) ) ,

    ,

    ,

    ,

    ,

    ,

    ,


    ,

    ) ) %if(%example% ,

    Example

    %html-quote(%example%)
    
    ) %if(%seealso%,

    See Also

    %mid(%enumtoken(%seealso%,| ,| %token% ),1) ) ) %null(** include page footer) %expand(%include(%fqppath(/footer.htx)))