sites with URL paths

why the lucky stiff why at hobix.com
Fri Sep 17 11:40:51 EDT 2004


William Morgan wrote:

>This monstrosity is the best I can come up with atm:
>
>class Out::Quick
>  def sidebar_erb
>    '<!--#include virtual="<%= weblog.link.gsub(/^\w+:\/\/.*?\//, "/") %>/sidebar.html"-->'
>  end
>end
>  
>
Okay, gotcha.  We'll abstract this away then as weblog.linkroot or 
something.

Alternatively, I could have the @link loaded as a URI object.  In which 
case, you could use:

  <%= weblog.link.path %>/sidebar.html

_why


More information about the Hobix-is-the-way mailing list