ASP4

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

t/htdocs/pageparser/child-outer.asp
t/htdocs/pageparser/does-trapinclude.asp
t/htdocs/pageparser/has-2-includes.asp
t/htdocs/pageparser/has-include.asp
t/htdocs/pageparser/has-nested-include.asp
t/htdocs/pageparser/is-include.asp
t/htdocs/pageparser/master.asp
t/htdocs/register-cleanup.asp
t/htdocs/routing/category.asp
t/htdocs/routing/deeply-nested.asp
t/htdocs/routing/lang-locale-wiki.asp
t/htdocs/seo-page/index.asp
t/htdocs/static.txt
t/htdocs/useragent/hello-world.asp
t/htdocs/useragent/simple-args.asp
t/htdocs/useragent/simple-form.asp
t/htdocs/useragent/upload-form.asp
t/lib/My/Filter.pm
t/lib/My/SEOFilter.pm

lib/ASP4/ConfigNode/Web.pm  view on Meta::CPAN

=head2 router

B<*IF*> you have defined a "routes" section in your config - like this:

  ...
  "web": {
    ...
    "routes": [
      {
        "name":   "Wiki",
        "path":   "/:lang-:locale/{*page}",
        "target": "/wiki-page.asp",
        "defaults": {
          "page":   "home",
          "lang":   "en",
          "locale": "us"
        }
      }
    ]
    ...
  }

Then the C<router> property will return a L<Router::Generic> object based on your routes.

You can access it from the C<$Config> like this:

t/htdocs/routing/lang-locale-wiki.asp  view on Meta::CPAN

YAY - lang/locale wiki page.



( run in 0.353 second using v1.01-cache-2.11-cpan-98e64b0badf )