From: Tim Pease Date: 2008-02-16T01:18:38+09:00 Subject: Re: [ANN] Webby 0.7.2 On Feb 15, 2008, at 4:15 AM, Leslie Viljoen wrote: > > Is there a forum or wiki for Webby? I have some more questions: > I should probably make one. > 1. Is there a directory in the webby structure where I can put files > to be copied into > output during a build? I currently put images directly under > output/img, which seems wrong. Put them in the content folder. The files will be copied to the output folder when the website is built. > > 2. How do you create links to other content pages without specifying > the URL directly? <%= link_to_page( :title => "Your Page Title" ) %> That will find the page that has "Your Page Title" as the value for the "title" meta-data attribute. It will use the title as the name for the anchor tag. However, you can also specify your own name to use as you discovered and replied in one of your response e-mails. > > 3. How do I add file dependencies to the build? ie. I have created a > scripts directory so > that in my default.rhtml I can 'require "scripts/utils.rb"' and use > those methods, but > 'rake autobuild' doesn't pick up changes to them. Custom extensions go in the "lib" folder. Any .rb files in there will be loaded when the rake tasks are run (build, rebuild, autobuild). I put things in there like code to create breadcrumb links or monkey patches to the webby source code. Thanks for enjoying webby :) It's been fun to write and fun to use. If you want to add updates to the manual, grab the latest version from the RubyForge svn and shoot me a diff file. Blessings, TwP