Class Webgen::GalleryStyle
In: lib/webgen/website.rb
Parent: DirectoryInfo
RuntimeError PluginParamNotFound PluginNotFound ConfigurationFileInvalid CmdParse::CommandParser CommandParser DirectoryInfo GalleryStyle WebSiteStyle WebSiteTemplate SipttraStyle Test::Unit::TestCase TestCase PluginTestCase TagTestCase CmdParse::Command ShowCommand CheckCommand UseCommand CreateCommand TSort DependencyHash Hash Comparable Language ::Logger Logger Logger DEFAULT_WRAPPER_MODULE WebSite Qt::MainWindow MainWindow Qt::Dialog NewWebsiteDialog Qt::TextEdit LogWidget ::Rake::TaskLib WebgenTask ConfigurationFile Website PluginManager PluginLoader PluginParamValueNotFound Dummy Color CliUtils PluginDefs lib/webgen/languages.rb lib/webgen/website.rb lib/webgen/gui/common.rb lib/webgen/plugin.rb lib/webgen/test.rb lib/webgen/cli.rb ClassMethods PluginDefs LanguageManager lib/webgen/gui/new_website_dlg.rb lib/webgen/gui/main.rb GUI lib/webgen/rake/webgentask.rb Rake Webgen dot/m_60_1.png

A gallery style provides style information for gallery pages. It should contains the files +gallery_main.template+, +gallery_gallery.template+ and +gallery_image.template+ and an optional readme file.

Methods

Constants

BASE_PATH = File.join( Webgen.data_dir, 'gallery_styles' )   Base path for the styles.

Public Instance methods

See DirectoryInfo#files

[Source]

     # File lib/webgen/website.rb, line 125
125:     def files
126:       super.select {|f| f != File.join( path, 'README' )} - plugin_files
127:     end

[Source]

     # File lib/webgen/website.rb, line 129
129:     def plugin_files
130:       plugin_files = []
131:       @infos['plugin files'].each do |pfile|
132:         plugin_files += Dir.glob( File.join( path, pfile ), File::FNM_CASEFOLD )
133:       end if @infos['plugin files']
134:       plugin_files
135:     end

[Validate]