If you don't want to be interpreting all the routes, them maybe you
could do something like this?

get '/css/:name.css' do
  header 'Content-Type' => 'text/css; charset=utf-8'
  css :name
end

(Obviously i'm not using HAML or SASS in this instance, but the
principle should be similar...)

On Wed, Mar 4, 2009 at 3:06 PM, Bodaniel Jeanes <m...@bjeanes.com> wrote:
> could you not do something like:
> get '/*' do
>   # interpret params[:splat] as needed
> end
> - Show quoted text -
>
> On Wed, Mar 4, 2009 at 1:56 PM, Lachlan Hardy <lach...@lachstock.com.au>
> wrote:
>>
>> It might just be my unbelievable hangover, because I thought this
>> would be easy, but I'm struggling big time.
>>
>>
>> Basically, I want to be able to pass routes such as '/dialogs',
>> 'dialogs/wizard', '/controls/buttons' etc to one controller that tells
>> Sinatra to go find the appropriate haml file.
>>
>> Obviously, I can just map out all the routes. Just as obviously, that is
>> lame.
>>
>> Anybody got a functioning brain this afternoon?
>>
>> Lachlan Hardy
>>
>>
>
> - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to