Иван Бахчеев > Web-App-1.21 > Web::App::Config

Download:
Web-App-1.21.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Web::App::Config - parsing Web::App configuration

DESCRIPTION ^

Web::App

sub path_from_request

this procedure return screen object and path info.

example:

request is: http://some.com/web-app/admin/article/12345

configuration is:

<config> ... <screens> ... <base-url>/web-app</base-url> ... <screen id='admin'> <presentation type='xslt' filename='not-found.xsl'/> </screen>

        <screen id='admin/article'>
          <presentation type='xslt' filename='not-found.xsl'/>
        </screen>
        ...

  </screens>
</config>

sub return screen object for screen with id = 'admin/article' and path info = '12345'

syntax highlighting: