sites with URL paths

William Morgan wmorgan-hobix-is-the-way at masanjin.net
Fri Sep 17 11:03:07 EDT 2004


Excerpts from why the lucky stiff's mail of 17 Sep 2004 (EDT):
> >2) in lib/local.rb, I had to change the SSI reference to sidebar.html to
> >  its actual location on disk.
> >
> This just needs to use <%= weblog.output_path %>, which is the path to 
> the doc root.

>From my reading of http://httpd.apache.org/docs/mod/mod_include.html, I
think that, despite what I said above, this needs to be URL path with no
scheme or hostname, not a disk path. (There's a 'file' SSI, but it
demands a path relative to the current document---not very useful.)

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

-- 
William <wmorgan-hobix-is-the-way at masanjin.net>


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