For client proofing I like to keep the site live on my server in "/
clients/company/", but Nanoc's default is "/".
I was thinking about creating a couple of rake tasks that looped
through my layouts gsub'ing href="/ and src="/ and to go back I would,
of course, gsub href="/clients/company/ So, then I could go back and
forth between the 2 paths. What do you guys think of this solution?
Any other ideas?
I just don't want their to be any issues as the site gets more and
more complex for whatever reason.
Better use the relativize_paths filter <http://nanoc.stoneship.org/manual/#list-of-built-in-filters
>
Best.
--
Choan Gálvez
Ukecosas. Los ukeleles que nos gustan, también para ti
Visítanos: <http://ukecosas.es/>
Escríbenos: <mailto:ukec...@ukecosas.es>
Síguenos en Twitter: <http://twitter.com/ukecosas/>
compile '*' do
filter :erb
layout 'default'
filter :relativize_paths, :type => :html
end
Works perfectly!