Module | Webgen |
In: |
lib/webgen/rake/webgentask.rb
lib/webgen/cli.rb lib/webgen/languages.rb lib/webgen/test.rb lib/webgen/website.rb lib/webgen/config.rb lib/webgen/gui/common.rb lib/webgen/plugin.rb |
VERSION | = | [0, 4, 7] | ||
AUTHOR | = | 'Thomas Leitner <t_leitner@gmx.at>' | ||
SUMMARY | = | "webgen is a templated based static Web site generator." | ||
DESCRIPTION | = | "webgen is a Web site generator implemented in Ruby. " \ "It is used to generate static Web pages from templates and page " \ "description files." | ||
SRC_DIR | = | 'src' | The directory below a website directory in which the source files are. | |
PLUGIN_DIR | = | 'plugin' | The directory below a website directory in which the plugin files are. | |
DEFAULT_PLUGIN_LOAD_PROC | = | proc do # THE base class for all plugins. # # Information about a plugin can be set via the class method +infos+. If no name for the plugin # is set, then the full plugin class name (including the namespace modules) is used, with # slashes instead of the double colons. class Plugin |
Main program for the webgen CLI.
# File lib/webgen/cli.rb, line 452 452: def self.cli_main 453: Color.colorify if $stdout.isatty && !Config::CONFIG['arch'].include?( 'mswin32' ) 454: cmdparser = CommandParser.new 455: cmdparser.parse 456: end
Returns the data directory for webgen.
# File lib/webgen/config.rb, line 41 41: def self.data_dir 42: unless defined?( @@data_dir ) 43: @@data_dir = File.expand_path( File.join( File.dirname( __FILE__ ), '..', '..', 'data', 'webgen') ) 44: 45: @@data_dir = File.expand_path( File.join( Config::CONFIG["datadir"], "webgen" ) ) if !File.exists?( @@data_dir ) 46: 47: raise "Could not find webgen data directory! This is a bug, report it please!" unless File.directory?( @@data_dir ) 48: end 49: @@data_dir 50: end