Displaying 1 result from an estimated 1 matches for "register_layout".
2006 May 22
2
Creating a new gallery layout
...ault.rb in foobar.rb and make
appropriate modifications. For
simplicity, lets say my class looks thus:
require ''webgen/plugins/gallerylayouters/default''
module GalleryLayouters
class Foobar < DefaultGalleryLayouter
define_handler ''layout''
register_layout ''foobar''
end
end
(yes, I tried filling in the main, gallery and image methods. Same results)
o I create a file my.gallery under src/:
title: Gallery
files: gallery/**/*.jpg
imagesPerPage: 16
layout: "foobar"
mainPage:
inMenu: true
Now when I run webgen, I kee...