Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Server Routing

#160

Routing currently does something like:


  /:controller(_controller)/:action

Update this to:


  /:controller_key/:action

Such that using escapes you can specify a minikey for any constant.


  /app/:action                # => App
  /tap-server%3aapp/:action   # => [tap-server] App
  /tap-server%3apath%2Fto%2Fapp/:action   # => [tap-server] Path::To::App

In this case env.controllers can become a 'standard' manifest and controllers can be put anywhere and marked by a '::controller' const_attr. What's more this makes view paths simpler with a single rule: 'views/path/to/const'

Reported by bahuvrihi · February 16th, 2009 @ 08:35 AM

State: invalid
Milestone: none
Assigned to: nobody

Activity

  1. bahuvrihi
    bahuvrihi

    Maybe specify a good way to forward requests as well... tasks are often named very well so it would be useful if there were a way to add a task controller without beating on the actual constant.

    • option one: if a constant doesn't have a call method, then look for ConstantController.
    • option two: have the task define call that calls TaskController

    Option one is not only slicker but it also keeps controller logic completely out of tasks.

    March 4th, 2009 @ 08:20 PM

  2. bahuvrihi
    bahuvrihi
    • State changed from new to invalid

    May 25th, 2009 @ 11:58 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.