From 54af56748cafd9a141efd3d1c54bab798b0a12f7 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 25 Jan 2010 15:10:13 +0100 Subject: add possibility to add extensions --- .bzrignore | 4 ++-- dudle.rb | 23 +++++++++++++++++++---- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.bzrignore b/.bzrignore index cf684d0..8ef27c8 100644 --- a/.bzrignore +++ b/.bzrignore @@ -1,5 +1,5 @@ -intern config.rb -css/* locale/dudle.pot locale/de/dudle.mo +css/* +extensions/* diff --git a/dudle.rb b/dudle.rb index f6981e0..e7e9239 100644 --- a/dudle.rb +++ b/dudle.rb @@ -35,7 +35,7 @@ require "config" require "charset" class Dudle - attr_reader :html, :table, :urlsuffix, :css, :title + attr_reader :html, :table, :urlsuffix, :css, :title, :tab def tabs(active_tab) ret = "
" # languageChooser + + @html << "" # content + @html << "" # main + + @extensions.each{|e| + require "#{@basedir}/extensions/#{e}/main" + } - @html << "" - @html << "" + @html << "" @html.out(@cgi) end -- cgit v1.2.3