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.

Add a template file server module

#211

This will be nice to add templated documentation to controllers. Example:

  nest :tutorial, Tap::Controller do
    def dispatch(route)
      if route == nil || route.empty?
        route = "index"
      end

      if path = module_path("#{route}.erb")
        render :file => path
      else
        raise ServerError.new("404 Error: page not found #{route}", 404)
      end
    end
  end

Reported by bahuvrihi · July 9th, 2009 @ 12:08 PM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

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.