Add a template file server module
Reported by bahuvrihi | July 9th, 2009 @ 12:08 PM
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
No comments found
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A framework for making configurable, file-based tasks and workflows.