suve

awful: function: get-prepare

Declaration

NIL :get-prepare

Summary

:!: Not available in CGI mode.
In CGI mode, this function is called automatically upon interpreter start. Performing a user call does nothing.

Retrieves the URL query string (by accessing the QUERY_STRING environmental variable) and breaks it into name-value pairs. Must be called before using using any other :get- functions.

Example

# GET example.
:get-prepare
!if :eq (:get-val s'page') s'about'
    :page-about
   !else
    :page-index
   !fi

wikipage modified on 2014/0601/2317