gettalong-webgen 0.5.4.20080929
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +5 -0
- data/COPYING +10 -0
- data/GPL +340 -0
- data/Rakefile +324 -0
- data/THANKS +17 -0
- data/bin/webgen +10 -0
- data/data/webgen/resources.yaml +3 -0
- data/data/webgen/webgui/controller/main.rb +129 -0
- data/data/webgen/webgui/overrides/win32console.rb +0 -0
- data/data/webgen/webgui/public/css/jquery.autocomplete.css +50 -0
- data/data/webgen/webgui/public/css/ramaze_error.css +90 -0
- data/data/webgen/webgui/public/css/style.css +55 -0
- data/data/webgen/webgui/public/img/headerbg.jpg +0 -0
- data/data/webgen/webgui/public/img/webgen_logo.png +0 -0
- data/data/webgen/webgui/public/js/jquery.autocomplete.js +15 -0
- data/data/webgen/webgui/public/js/jquery.js +32 -0
- data/data/webgen/webgui/view/create_website.xhtml +22 -0
- data/data/webgen/webgui/view/error.xhtml +64 -0
- data/data/webgen/webgui/view/index.xhtml +22 -0
- data/data/webgen/webgui/view/manage_website.xhtml +18 -0
- data/data/webgen/webgui/view/page.xhtml +40 -0
- data/data/webgen/website_skeleton/README +10 -0
- data/data/webgen/website_skeleton/Rakefile +40 -0
- data/data/webgen/website_skeleton/config.yaml +17 -0
- data/data/webgen/website_skeleton/ext/init.rb +6 -0
- data/data/webgen/website_styles/1024px/README +13 -0
- data/data/webgen/website_styles/1024px/src/default.css +188 -0
- data/data/webgen/website_styles/1024px/src/default.template +60 -0
- data/data/webgen/website_styles/1024px/src/images/background.gif +0 -0
- data/data/webgen/website_styles/andreas00/README +13 -0
- data/data/webgen/website_styles/andreas00/src/default.css +290 -0
- data/data/webgen/website_styles/andreas00/src/default.template +60 -0
- data/data/webgen/website_styles/andreas00/src/images/bg.gif +0 -0
- data/data/webgen/website_styles/andreas00/src/images/front.jpg +0 -0
- data/data/webgen/website_styles/andreas00/src/images/menubg.gif +0 -0
- data/data/webgen/website_styles/andreas00/src/images/menubg2.gif +0 -0
- data/data/webgen/website_styles/andreas01/README +14 -0
- data/data/webgen/website_styles/andreas01/src/default.css +310 -0
- data/data/webgen/website_styles/andreas01/src/default.template +61 -0
- data/data/webgen/website_styles/andreas01/src/images/bg.gif +0 -0
- data/data/webgen/website_styles/andreas01/src/images/front.jpg +0 -0
- data/data/webgen/website_styles/andreas01/src/print.css +35 -0
- data/data/webgen/website_styles/andreas03/README +14 -0
- data/data/webgen/website_styles/andreas03/src/default.css +223 -0
- data/data/webgen/website_styles/andreas03/src/default.template +58 -0
- data/data/webgen/website_styles/andreas03/src/images/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/contbg.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/footerbg.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/gradient1.png +0 -0
- data/data/webgen/website_styles/andreas03/src/images/gradient2.png +0 -0
- data/data/webgen/website_styles/andreas04/README +15 -0
- data/data/webgen/website_styles/andreas04/src/default.css +290 -0
- data/data/webgen/website_styles/andreas04/src/default.template +81 -0
- data/data/webgen/website_styles/andreas04/src/images/blinkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/bodybg.png +0 -0
- data/data/webgen/website_styles/andreas04/src/images/contentbg.png +0 -0
- data/data/webgen/website_styles/andreas04/src/images/entrybg.png +0 -0
- data/data/webgen/website_styles/andreas04/src/images/flash.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/flash2.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/globe.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/globebottom.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/linkarrow.gif +0 -0
- data/data/webgen/website_styles/andreas04/src/images/menuhover.png +0 -0
- data/data/webgen/website_styles/andreas05/README +14 -0
- data/data/webgen/website_styles/andreas05/src/default.css +33 -0
- data/data/webgen/website_styles/andreas05/src/default.template +40 -0
- data/data/webgen/website_styles/andreas05/src/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas05/src/images/front.png +0 -0
- data/data/webgen/website_styles/andreas06/README +14 -0
- data/data/webgen/website_styles/andreas06/src/default.css +354 -0
- data/data/webgen/website_styles/andreas06/src/default.template +70 -0
- data/data/webgen/website_styles/andreas06/src/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/boxbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/greypx.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/header.jpg +0 -0
- data/data/webgen/website_styles/andreas06/src/images/innerbg.gif +0 -0
- data/data/webgen/website_styles/andreas06/src/images/leaves.jpg +0 -0
- data/data/webgen/website_styles/andreas06/src/images/tabs.gif +0 -0
- data/data/webgen/website_styles/andreas07/README +15 -0
- data/data/webgen/website_styles/andreas07/src/browserfix.css +7 -0
- data/data/webgen/website_styles/andreas07/src/default.css +92 -0
- data/data/webgen/website_styles/andreas07/src/default.template +42 -0
- data/data/webgen/website_styles/andreas07/src/images/bodybg.gif +0 -0
- data/data/webgen/website_styles/andreas07/src/images/sidebarbg.gif +0 -0
- data/data/webgen/website_styles/andreas08/README +14 -0
- data/data/webgen/website_styles/andreas08/src/default.css +224 -0
- data/data/webgen/website_styles/andreas08/src/default.template +51 -0
- data/data/webgen/website_styles/andreas09/README +14 -0
- data/data/webgen/website_styles/andreas09/src/default.css +308 -0
- data/data/webgen/website_styles/andreas09/src/default.template +68 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/bodybg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/footerbg.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-black.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-green.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-orange.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-purple.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover-red.jpg +0 -0
- data/data/webgen/website_styles/andreas09/src/images/menuhover.jpg +0 -0
- data/data/webgen/website_styles/simple/README +6 -0
- data/data/webgen/website_styles/simple/src/default.css +84 -0
- data/data/webgen/website_styles/simple/src/default.template +36 -0
- data/data/webgen/website_templates/default/README +6 -0
- data/data/webgen/website_templates/default/src/index.page +8 -0
- data/data/webgen/website_templates/project/README +5 -0
- data/data/webgen/website_templates/project/src/about.page +12 -0
- data/data/webgen/website_templates/project/src/download.page +15 -0
- data/data/webgen/website_templates/project/src/features.page +8 -0
- data/data/webgen/website_templates/project/src/index.page +9 -0
- data/data/webgen/website_templates/project/src/screenshots.page +18 -0
- data/doc/contentprocessor.template +11 -0
- data/doc/contentprocessor/blocks.page +66 -0
- data/doc/contentprocessor/builder.page +80 -0
- data/doc/contentprocessor/erb.page +56 -0
- data/doc/contentprocessor/erubis.page +46 -0
- data/doc/contentprocessor/haml.page +47 -0
- data/doc/contentprocessor/maruku.page +41 -0
- data/doc/contentprocessor/rdiscount.page +37 -0
- data/doc/contentprocessor/rdoc.page +36 -0
- data/doc/contentprocessor/redcloth.page +39 -0
- data/doc/contentprocessor/sass.page +31 -0
- data/doc/contentprocessor/tags.page +73 -0
- data/doc/extensions.metainfo +29 -0
- data/doc/extensions.page +16 -0
- data/doc/extensions.template +17 -0
- data/doc/faq.page +214 -0
- data/doc/getting_started.page +134 -0
- data/doc/index.page +65 -0
- data/doc/manual.page +532 -0
- data/doc/reference_configuration.page +646 -0
- data/doc/reference_metainfo.page +213 -0
- data/doc/sourcehandler.template +21 -0
- data/doc/sourcehandler/copy.page +19 -0
- data/doc/sourcehandler/directory.page +27 -0
- data/doc/sourcehandler/feed.page +82 -0
- data/doc/sourcehandler/metainfo.page +41 -0
- data/doc/sourcehandler/page.page +30 -0
- data/doc/sourcehandler/sitemap.page +46 -0
- data/doc/sourcehandler/template.page +45 -0
- data/doc/sourcehandler/virtual.page +49 -0
- data/doc/tag.template +25 -0
- data/doc/tag/breadcrumbtrail.page +40 -0
- data/doc/tag/coderay.page +49 -0
- data/doc/tag/date.page +31 -0
- data/doc/tag/executecommand.page +26 -0
- data/doc/tag/includefile.page +32 -0
- data/doc/tag/langbar.page +22 -0
- data/doc/tag/menu.page +92 -0
- data/doc/tag/metainfo.page +29 -0
- data/doc/tag/relocatable.page +38 -0
- data/doc/tag/sitemap.page +31 -0
- data/doc/upgrading.page +139 -0
- data/doc/webgen_page_format.page +128 -0
- data/lib/webgen/blackboard.rb +73 -0
- data/lib/webgen/cache.rb +85 -0
- data/lib/webgen/cli.rb +118 -0
- data/lib/webgen/cli/create_command.rb +64 -0
- data/lib/webgen/cli/run_command.rb +20 -0
- data/lib/webgen/cli/utils.rb +86 -0
- data/lib/webgen/cli/webgui_command.rb +49 -0
- data/lib/webgen/common.rb +10 -0
- data/lib/webgen/common/sitemap.rb +76 -0
- data/lib/webgen/configuration.rb +147 -0
- data/lib/webgen/contentprocessor.rb +96 -0
- data/lib/webgen/contentprocessor/blocks.rb +46 -0
- data/lib/webgen/contentprocessor/builder.rb +26 -0
- data/lib/webgen/contentprocessor/context.rb +90 -0
- data/lib/webgen/contentprocessor/erb.rb +24 -0
- data/lib/webgen/contentprocessor/erubis.rb +40 -0
- data/lib/webgen/contentprocessor/haml.rb +25 -0
- data/lib/webgen/contentprocessor/maruku.rb +18 -0
- data/lib/webgen/contentprocessor/rdiscount.rb +15 -0
- data/lib/webgen/contentprocessor/rdoc.rb +17 -0
- data/lib/webgen/contentprocessor/redcloth.rb +15 -0
- data/lib/webgen/contentprocessor/sass.rb +18 -0
- data/lib/webgen/contentprocessor/tags.rb +134 -0
- data/lib/webgen/coreext.rb +10 -0
- data/lib/webgen/default_config.rb +198 -0
- data/lib/webgen/languages.rb +578 -0
- data/lib/webgen/loggable.rb +23 -0
- data/lib/webgen/logger.rb +78 -0
- data/lib/webgen/node.rb +347 -0
- data/lib/webgen/output.rb +37 -0
- data/lib/webgen/output/filesystem.rb +67 -0
- data/lib/webgen/page.rb +133 -0
- data/lib/webgen/path.rb +182 -0
- data/lib/webgen/source.rb +24 -0
- data/lib/webgen/source/filesystem.rb +58 -0
- data/lib/webgen/source/resource.rb +42 -0
- data/lib/webgen/source/stacked.rb +53 -0
- data/lib/webgen/sourcehandler.rb +202 -0
- data/lib/webgen/sourcehandler/base.rb +211 -0
- data/lib/webgen/sourcehandler/copy.rb +41 -0
- data/lib/webgen/sourcehandler/directory.rb +31 -0
- data/lib/webgen/sourcehandler/feed.rb +121 -0
- data/lib/webgen/sourcehandler/fragment.rb +71 -0
- data/lib/webgen/sourcehandler/metainfo.rb +117 -0
- data/lib/webgen/sourcehandler/page.rb +77 -0
- data/lib/webgen/sourcehandler/sitemap.rb +60 -0
- data/lib/webgen/sourcehandler/template.rb +68 -0
- data/lib/webgen/sourcehandler/virtual.rb +75 -0
- data/lib/webgen/tag.rb +23 -0
- data/lib/webgen/tag/base.rb +162 -0
- data/lib/webgen/tag/breadcrumbtrail.rb +71 -0
- data/lib/webgen/tag/coderay.rb +32 -0
- data/lib/webgen/tag/date.rb +18 -0
- data/lib/webgen/tag/executecommand.rb +29 -0
- data/lib/webgen/tag/includefile.rb +42 -0
- data/lib/webgen/tag/langbar.rb +52 -0
- data/lib/webgen/tag/menu.rb +186 -0
- data/lib/webgen/tag/metainfo.rb +25 -0
- data/lib/webgen/tag/relocatable.rb +53 -0
- data/lib/webgen/tag/sitemap.rb +42 -0
- data/lib/webgen/tree.rb +80 -0
- data/lib/webgen/version.rb +6 -0
- data/lib/webgen/webgentask.rb +148 -0
- data/lib/webgen/website.rb +214 -0
- data/lib/webgen/websiteaccess.rb +29 -0
- data/lib/webgen/websitemanager.rb +125 -0
- data/man/man1/webgen.1 +67 -0
- data/misc/default.css +360 -0
- data/misc/default.template +75 -0
- data/misc/htmldoc.metainfo +25 -0
- data/misc/htmldoc.virtual +5 -0
- data/misc/images/arrow.gif +0 -0
- data/misc/images/error.gif +0 -0
- data/misc/images/exclamation.gif +0 -0
- data/misc/images/headerbg.jpg +0 -0
- data/misc/images/information.gif +0 -0
- data/misc/images/quote.gif +0 -0
- data/setup.rb +1585 -0
- data/test/helper.rb +41 -0
- data/test/test_blackboard.rb +58 -0
- data/test/test_cache.rb +57 -0
- data/test/test_common_sitemap.rb +56 -0
- data/test/test_configuration.rb +66 -0
- data/test/test_contentprocessor.rb +31 -0
- data/test/test_contentprocessor_blocks.rb +34 -0
- data/test/test_contentprocessor_builder.rb +19 -0
- data/test/test_contentprocessor_context.rb +38 -0
- data/test/test_contentprocessor_erb.rb +20 -0
- data/test/test_contentprocessor_erubis.rb +47 -0
- data/test/test_contentprocessor_haml.rb +20 -0
- data/test/test_contentprocessor_maruku.rb +27 -0
- data/test/test_contentprocessor_rdiscount.rb +15 -0
- data/test/test_contentprocessor_rdoc.rb +16 -0
- data/test/test_contentprocessor_redcloth.rb +12 -0
- data/test/test_contentprocessor_sass.rb +20 -0
- data/test/test_contentprocessor_tags.rb +97 -0
- data/test/test_languages.rb +53 -0
- data/test/test_loggable.rb +30 -0
- data/test/test_logger.rb +73 -0
- data/test/test_node.rb +339 -0
- data/test/test_output_filesystem.rb +58 -0
- data/test/test_page.rb +203 -0
- data/test/test_path.rb +131 -0
- data/test/test_source_filesystem.rb +59 -0
- data/test/test_source_resource.rb +26 -0
- data/test/test_source_stacked.rb +34 -0
- data/test/test_sourcehandler_base.rb +92 -0
- data/test/test_sourcehandler_copy.rb +45 -0
- data/test/test_sourcehandler_directory.rb +25 -0
- data/test/test_sourcehandler_feed.rb +74 -0
- data/test/test_sourcehandler_fragment.rb +67 -0
- data/test/test_sourcehandler_metainfo.rb +93 -0
- data/test/test_sourcehandler_page.rb +70 -0
- data/test/test_sourcehandler_sitemap.rb +47 -0
- data/test/test_sourcehandler_template.rb +63 -0
- data/test/test_sourcehandler_virtual.rb +56 -0
- data/test/test_tag_base.rb +82 -0
- data/test/test_tag_breadcrumbtrail.rb +89 -0
- data/test/test_tag_coderay.rb +30 -0
- data/test/test_tag_date.rb +16 -0
- data/test/test_tag_executecommand.rb +39 -0
- data/test/test_tag_includefile.rb +48 -0
- data/test/test_tag_langbar.rb +60 -0
- data/test/test_tag_menu.rb +195 -0
- data/test/test_tag_metainfo.rb +17 -0
- data/test/test_tag_relocatable.rb +57 -0
- data/test/test_tag_sitemap.rb +44 -0
- data/test/test_tree.rb +69 -0
- data/test/test_webgentask.rb +21 -0
- data/test/test_website.rb +96 -0
- data/test/test_websiteaccess.rb +23 -0
- data/test/test_websitemanager.rb +68 -0
- metadata +575 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
<link rel="stylesheet" href="/css/ramaze_error.css" />
|
2
|
+
<script type="text/javascript" src="/js/jquery.js"></script>
|
3
|
+
|
4
|
+
<p>The backtrace gives filenames and line numbers for all parts of the call stack.<br />
|
5
|
+
Click on any of them to view the surrounding source code.</p>
|
6
|
+
|
7
|
+
<h3>#@title</h3>
|
8
|
+
|
9
|
+
<table class="main">
|
10
|
+
<tr class="head">
|
11
|
+
<td>File</td><td>Line</td><td>Method</td>
|
12
|
+
</tr>
|
13
|
+
<?r @backtrace.each do |lines, hash, file, lineno, meth| ?>
|
14
|
+
<tr class="line" id="#{hash}">
|
15
|
+
<td>#{file}</td><td class="lineno">#{lineno}</td><td><pre>#{meth}</pre></td>
|
16
|
+
</tr>
|
17
|
+
<tr id="source_#{hash}" style="display:none;">
|
18
|
+
<td colspan="3">
|
19
|
+
<div class="source">
|
20
|
+
<table style="width:100%;">
|
21
|
+
<tr>
|
22
|
+
<td class="editor" colspan="2">
|
23
|
+
#{@editor} #{file} +#{lineno}
|
24
|
+
<div style="float: right">
|
25
|
+
<a href="txmt://open?url=file://#{file}&line=#{lineno}">open in textmate</a>
|
26
|
+
</div>
|
27
|
+
</td>
|
28
|
+
</tr>
|
29
|
+
<?r lines.each do |llineno, lcode, lcurrent| ?>
|
30
|
+
<tr class="source" #{'style="background:#faa;"' if lcurrent}>
|
31
|
+
<td class="lineno">#{llineno}</td>
|
32
|
+
<td class="code"><pre>#{lcode.to_s.rstrip}</pre></td>
|
33
|
+
</tr>
|
34
|
+
<?r end ?>
|
35
|
+
</table>
|
36
|
+
</div>
|
37
|
+
</td>
|
38
|
+
</tr>
|
39
|
+
<?r end ?>
|
40
|
+
</table>
|
41
|
+
|
42
|
+
<?r
|
43
|
+
{ 'Session' => Thread.current[:session],
|
44
|
+
'Request' => Thread.current[:request],
|
45
|
+
'Response' => Thread.current[:response],
|
46
|
+
'Global' => Global,
|
47
|
+
}.each do |title, content|
|
48
|
+
hash = [title, content].object_id.abs
|
49
|
+
?>
|
50
|
+
<div class="additional">
|
51
|
+
<h3 id="#{hash}">#{title}</h3>
|
52
|
+
<pre style="display:none" id="is_#{hash}">#{CGI.escapeHTML(content.pretty_inspect)}</pre>
|
53
|
+
</div>
|
54
|
+
<?r end ?>
|
55
|
+
|
56
|
+
<script type="text/javascript">
|
57
|
+
$("tr.line").click(function(){
|
58
|
+
$("tr#source_"+this.id).toggle()
|
59
|
+
});
|
60
|
+
|
61
|
+
$("div.additional > h3").click(function(){
|
62
|
+
$("pre#is_"+this.id).toggle()
|
63
|
+
});
|
64
|
+
</script>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<h2>Welcome to the webgen webgui!</h2>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
This web application lets you create and manage webgen website. Just set the directory of an
|
5
|
+
existing or a to-be-created website in the top right corner and click the button!
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<ul>
|
9
|
+
<li>
|
10
|
+
If you select an existing directory, the webgui assumes that it is a webgen website directory and
|
11
|
+
presents you with page for managing a webgen website.
|
12
|
+
</li>
|
13
|
+
<li>
|
14
|
+
If you select a non-existing directory, the webgui shows you a page for creating a webgen website.
|
15
|
+
</li>
|
16
|
+
</ul>
|
17
|
+
|
18
|
+
<p>
|
19
|
+
The text input field uses auto-completion to show you the available directories on your
|
20
|
+
computer. You can either start typing an absolute path name or relative one which will be resolved
|
21
|
+
from the directory in which you started the webgui.
|
22
|
+
</p>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<form method='post' action='#{R :manage_website}'>
|
2
|
+
<p>
|
3
|
+
<label for='verbosity'>Verbosity:
|
4
|
+
<select id='verbosity' name='verbosity'>
|
5
|
+
<option #{@verbosity == 'normal' ? selected='selected' : ''}>normal</option>
|
6
|
+
<option #{@verbosity == 'verbose' ? selected='selected' : ''}>verbose</option>
|
7
|
+
<option #{@verbosity == 'quiet' ? selected='selected' : ''}>quiet</option>
|
8
|
+
</select>
|
9
|
+
<input type='submit' id='render_site' name='render_site' value='Render website' />
|
10
|
+
<!-- <input type='submit' id='auto_render_site' name='auto_render_site' value='#{session['auto_render'] ? 'Stop auto-rendering' : 'Start auto-rendering'}' /> -->
|
11
|
+
</p>
|
12
|
+
</form>
|
13
|
+
|
14
|
+
<div id='website_log'>
|
15
|
+
<pre>#{CGI::escapeHTML(@log.to_s)}</pre>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<object id='website_preview' type='text/html' data='#{R :preview_website, "/index.html"}' width='100%' height='600px' style='border: 1px solid black' />
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<title>#{@title}</title>
|
6
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
7
|
+
<meta http-equiv="Content-Style-Type" content="text/css" />
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
|
+
|
10
|
+
<link href="#{R '/css/style.css'}" rel="stylesheet" type="text/css" />
|
11
|
+
<link href="#{R '/css/jquery.autocomplete.css'}" rel="stylesheet" type="text/css" />
|
12
|
+
|
13
|
+
<script type='text/javascript' src="#{R '/js/jquery.js'}"></script>
|
14
|
+
<script type='text/javascript' src="#{R '/js/jquery.autocomplete.js'}"></script>
|
15
|
+
<script type='text/javascript'>
|
16
|
+
$(document).ready(function() {
|
17
|
+
$("#website_dir").autocomplete('#{R MainController, :path_autocomplete}');
|
18
|
+
});
|
19
|
+
</script>
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<div id="header">
|
23
|
+
<img src="#{R '/img/webgen_logo.png'}" alt='logo' />
|
24
|
+
<h2><a href="#{R '/'}">webgen <span>webgui</span></a></h2>
|
25
|
+
|
26
|
+
<div id='site-select-form'>
|
27
|
+
<form method='post' action='#{R MainController, :site_ops}'>
|
28
|
+
<p>
|
29
|
+
<input type='text' id='website_dir' name='website_dir' value='#{session["website_dir"]}' size="70" />
|
30
|
+
<input type='submit' id='set_site' name='set_site' value='Set website directory' />
|
31
|
+
</p>
|
32
|
+
</form>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
<div id="content">
|
37
|
+
#@content
|
38
|
+
</div>
|
39
|
+
</body>
|
40
|
+
</html>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
description:
|
2
|
+
This skeleton of a webgen website provides a set of default files for every
|
3
|
+
created webgen website.
|
4
|
+
|
5
|
+
When using the standard settings, the sources are in the directory `src` and
|
6
|
+
the generated output goes into `out`. Extensions can be placed under `ext`.
|
7
|
+
|
8
|
+
For configuration purposes, use the config.rb or config.yaml files.
|
9
|
+
---
|
10
|
+
note: This file can be deleted!
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
#
|
3
|
+
# This is a sample Rakefile to which you can add tasks to manage your website. For example, users
|
4
|
+
# may use this file for specifying an upload task for their website (copying the output to a server
|
5
|
+
# via rsync, ftp, scp, ...).
|
6
|
+
#
|
7
|
+
# It also provides some tasks out of the box, for example, rendering the website, clobbering the
|
8
|
+
# generated files, an auto render task,...
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'webgen/webgentask'
|
12
|
+
|
13
|
+
task :default => :webgen
|
14
|
+
|
15
|
+
Webgen::WebgenTask.new do |website|
|
16
|
+
website.clobber_outdir = true
|
17
|
+
website.config_block = lambda do |config|
|
18
|
+
# you can set configuration options here
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "Render the website automatically on changes"
|
23
|
+
task :auto_webgen do
|
24
|
+
puts 'Starting auto-render mode'
|
25
|
+
time = Time.now
|
26
|
+
abort = false
|
27
|
+
old_paths = []
|
28
|
+
Signal.trap('INT') {abort = true}
|
29
|
+
|
30
|
+
while !abort
|
31
|
+
# you may need to adjust the glob so that all your sources are included
|
32
|
+
paths = Dir['src/**/*'].sort
|
33
|
+
if old_paths != paths || paths.any? {|p| File.mtime(p) > time}
|
34
|
+
Rake::Task['webgen'].execute({})
|
35
|
+
end
|
36
|
+
time = Time.now
|
37
|
+
old_paths = paths
|
38
|
+
sleep 2
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This is the YAML configuration file for webgen used to set configuration options.
|
2
|
+
#
|
3
|
+
# The general syntax is:
|
4
|
+
#
|
5
|
+
# configuration.option.name: value
|
6
|
+
#
|
7
|
+
# For example, to set a different default language, you would do:
|
8
|
+
#
|
9
|
+
# website.lang: de
|
10
|
+
#
|
11
|
+
# Have a look at the documentation of the individual configuration options to see
|
12
|
+
# the allowed format of the values. Since this is a YAML file, you can easily set
|
13
|
+
# configuration options to strings, integers, dates, arrays, hashes and more.
|
14
|
+
#
|
15
|
+
# The available configuration options can be listed using the `webgen config`
|
16
|
+
# command, for example: `webgen config sourcehandler` will list all options starting
|
17
|
+
# with sourcehandler.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# = webgen extensions directory
|
2
|
+
#
|
3
|
+
# All init.rb files anywhere under this directory get automatically loaded on a webgen run. This
|
4
|
+
# allows you to add your own extensions to webgen or to modify webgen's core!
|
5
|
+
#
|
6
|
+
# If you don't need this feature you can savely delete this file and the directory in which it is!
|
@@ -0,0 +1,13 @@
|
|
1
|
+
description:
|
2
|
+
Open source web design template by Andreas Viklund. Features a simple blue and grey
|
3
|
+
two column interface, with a left or a right sidebar. Have a look at the homepage
|
4
|
+
to see the original template and what can be done with it.
|
5
|
+
|
6
|
+
author:
|
7
|
+
Andreas Viklund (adapted for webgen by Thomas Leitner)
|
8
|
+
|
9
|
+
copyright:
|
10
|
+
http://andreasviklund.com/about/copyright/
|
11
|
+
|
12
|
+
homepage:
|
13
|
+
http://andreasviklund.com/templates
|
@@ -0,0 +1,188 @@
|
|
1
|
+
/* 1024px - An open source xhtml/css website template by Andreas Viklund - http://andreasviklund.com . Free to use in any way and for any purpose as long as the proper credits are given to the original designer.
|
2
|
+
|
3
|
+
Version: 1.2, April 20, 2006 */
|
4
|
+
|
5
|
+
/******** General tags ********/
|
6
|
+
body{
|
7
|
+
font:76% Verdana,Tahoma,Arial,sans-serif;
|
8
|
+
background:#ffffff url(images/background.gif) top center repeat-y;
|
9
|
+
color:#404040;
|
10
|
+
line-height:1.2em;
|
11
|
+
margin:0 auto;
|
12
|
+
padding:0;
|
13
|
+
}
|
14
|
+
|
15
|
+
a, #sidebar #menu span {
|
16
|
+
text-decoration:none;
|
17
|
+
color:#4088b8;
|
18
|
+
font-weight:bold;
|
19
|
+
}
|
20
|
+
|
21
|
+
a:hover{text-decoration:underline;}
|
22
|
+
a img{border:0;}
|
23
|
+
p{margin:0 0 18px 10px;}
|
24
|
+
ul,ol,dl{font-size:0.9em; margin:2px 0 16px 35px;}
|
25
|
+
ul ul,ol ol{margin:4px 0 4px 35px;}
|
26
|
+
|
27
|
+
h1{
|
28
|
+
font-size:4.2em;
|
29
|
+
letter-spacing:-5px;
|
30
|
+
margin:0 0 30px 25px;
|
31
|
+
color:#4088b8;
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 a{text-transform:none; color:#4088b8;}
|
35
|
+
|
36
|
+
h2{
|
37
|
+
font-size:1.4em;
|
38
|
+
color:#4088b8;
|
39
|
+
border-bottom:4px solid #dadada;
|
40
|
+
padding:0 2px 2px 5px;
|
41
|
+
margin:0 0 10px 0;
|
42
|
+
letter-spacing:-1px;
|
43
|
+
}
|
44
|
+
|
45
|
+
h3{
|
46
|
+
font-size:1.2em;
|
47
|
+
font-weight:bold;
|
48
|
+
color:#4088b8;
|
49
|
+
border-bottom:1px solid #dadada;
|
50
|
+
margin:10px 0 8px 0;
|
51
|
+
padding:1px 2px 2px 3px;
|
52
|
+
}
|
53
|
+
|
54
|
+
blockquote{
|
55
|
+
font-size:0.9em;
|
56
|
+
border:1px solid #dadada;
|
57
|
+
margin:20px 10px;
|
58
|
+
padding:8px;
|
59
|
+
}
|
60
|
+
|
61
|
+
/******** Main wrap ********/
|
62
|
+
#wrap{
|
63
|
+
color:#404040;
|
64
|
+
width:970px;
|
65
|
+
margin:10px auto;
|
66
|
+
padding:0;
|
67
|
+
}
|
68
|
+
|
69
|
+
#header{margin:0;}
|
70
|
+
|
71
|
+
#header h1 {margin-top: -30px}
|
72
|
+
|
73
|
+
#toplinks{text-align:right; padding:5px 2px 2px 3px;}
|
74
|
+
|
75
|
+
#slogan{
|
76
|
+
font-size:1.5em;
|
77
|
+
color:#808080;
|
78
|
+
font-weight:bold;
|
79
|
+
letter-spacing:-1px;
|
80
|
+
margin:15px 0px 20px 35px;
|
81
|
+
line-height:1.2em;
|
82
|
+
}
|
83
|
+
|
84
|
+
/******** sidebar ********/
|
85
|
+
#sidebar{
|
86
|
+
float:left;
|
87
|
+
width:195px;
|
88
|
+
margin:0 0 5px 0;
|
89
|
+
padding:1px 0 0 0;
|
90
|
+
}
|
91
|
+
|
92
|
+
#sidebar ul{
|
93
|
+
list-style:none;
|
94
|
+
font-size:0.9em;
|
95
|
+
margin:0;
|
96
|
+
padding:0 0 15px 10px;
|
97
|
+
}
|
98
|
+
|
99
|
+
#sidebar li{
|
100
|
+
list-style:none;
|
101
|
+
margin:0 0 4px 0;
|
102
|
+
padding:0;
|
103
|
+
}
|
104
|
+
|
105
|
+
#sidebar li a, #sidebar li span {
|
106
|
+
font-size:1.2em;
|
107
|
+
font-weight:bold;
|
108
|
+
padding:2px;
|
109
|
+
}
|
110
|
+
|
111
|
+
#sidebar ul ul{
|
112
|
+
margin:4px 0 3px 15px;
|
113
|
+
line-height:1.2em;
|
114
|
+
padding:0;
|
115
|
+
}
|
116
|
+
|
117
|
+
#sidebar ul ul li a, #sidebar ul ul li span {font-weight:normal;}
|
118
|
+
#sidebar h2{margin:3px 0px 8px 0px;}
|
119
|
+
|
120
|
+
/******** Content variations ********/
|
121
|
+
#content{
|
122
|
+
line-height:1.5em;
|
123
|
+
width:750px;
|
124
|
+
float:right;
|
125
|
+
text-align:left;
|
126
|
+
margin:0;
|
127
|
+
padding:0;
|
128
|
+
}
|
129
|
+
|
130
|
+
#contentalt{
|
131
|
+
line-height:1.5em;
|
132
|
+
width:750px;
|
133
|
+
float:left;
|
134
|
+
text-align:left;
|
135
|
+
padding:0;
|
136
|
+
margin-right:20px;
|
137
|
+
}
|
138
|
+
|
139
|
+
#content h3, #contentalt h3{margin:10px 0 8px;}
|
140
|
+
|
141
|
+
/******** Footer ********/
|
142
|
+
#footer{
|
143
|
+
clear:both;
|
144
|
+
text-align:right;
|
145
|
+
color:#808080;
|
146
|
+
font-size:0.9em;
|
147
|
+
border-top:4px solid #dadada;
|
148
|
+
margin:0 auto;
|
149
|
+
padding:8px 0;
|
150
|
+
line-height:1.6em;
|
151
|
+
}
|
152
|
+
|
153
|
+
#footer p{margin:0; padding:0;}
|
154
|
+
#footer a{color:#808080;}
|
155
|
+
|
156
|
+
/******** Various classes ********/
|
157
|
+
.box{
|
158
|
+
color:#ffffff;
|
159
|
+
font-size:0.9em;
|
160
|
+
background-color:#4088b8;
|
161
|
+
border:1px solid #c8c8c8;
|
162
|
+
line-height:1.3em;
|
163
|
+
padding:5px 5px 5px 8px;
|
164
|
+
}
|
165
|
+
|
166
|
+
.box a{color:#f0f0f0;}
|
167
|
+
.left{float:left; margin:0 15px 4px 0;}
|
168
|
+
.right{float:right; margin:0 0 4px 15px;}
|
169
|
+
.textright{text-align:right;}
|
170
|
+
.readmore{text-align:right; margin:-10px 10px 12px 0;}
|
171
|
+
|
172
|
+
.center{text-align:center;}
|
173
|
+
.blue{color:#4088b8;}
|
174
|
+
.big{font-size:1.3em;}
|
175
|
+
.small{font-size:0.8em;}
|
176
|
+
.bold{font-weight:bold;}
|
177
|
+
|
178
|
+
.clear{clear:both;}
|
179
|
+
.hide{display:none;}
|
180
|
+
.fade{color:#c8c8c8;}
|
181
|
+
.gray{color:#808080;}
|
182
|
+
|
183
|
+
.photo{
|
184
|
+
border:1px solid #bababa;
|
185
|
+
padding:2px;
|
186
|
+
background-color:#ffffff;
|
187
|
+
margin:6px 18px 2px 5px;
|
188
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{lang:}">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
+
<meta name="description" content="Your description goes here..." />
|
7
|
+
<meta name="keywords" content="your,keywords,goes,here" />
|
8
|
+
<meta name="author" content="Your Name / Design by Andreas Viklund - http://andreasviklund.com/" />
|
9
|
+
<meta name="generator" content="webgen - http://webgen.rubyforge.com/" />
|
10
|
+
<link rel="stylesheet" type="text/css" href="{relocatable: default.css}" media="screen,projection" />
|
11
|
+
<title>{title: }</title>
|
12
|
+
</head>
|
13
|
+
|
14
|
+
<body>
|
15
|
+
<div id="wrap">
|
16
|
+
|
17
|
+
<div id="header">
|
18
|
+
<p id="toplinks">Skip to: <a href="#content">Content</a> | <a href="#sidebar">Navigation</a> | <a href="#footer">Footer</a><br />
|
19
|
+
Location: {breadcrumb_trail: }<br />
|
20
|
+
Language: {langbar: }
|
21
|
+
</p>
|
22
|
+
<h1><a href="{relocatable: /index.html}">Title<span class="fade">appendix</span></a></h1>
|
23
|
+
<p id="slogan">the slogan of the site...</p>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div id="content">
|
27
|
+
<webgen:block name="content" />
|
28
|
+
|
29
|
+
<p class="readmore"><a href="styles.html">Example "Read more" link</a> »</p>
|
30
|
+
<p class="box"><strong>Example Note:</strong>This is a note! Check out the CSS file for other CSS classes and styles included!</p>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="sidebar">
|
34
|
+
<h2>Welcome!</h2>
|
35
|
+
<p>Write a short presentation of yourself or the site right here!</p>
|
36
|
+
|
37
|
+
<h2>Pages:</h2>
|
38
|
+
<div id="menu">{menu: {max_levels: 2}}</div>
|
39
|
+
|
40
|
+
<h2>Site news:</h2>
|
41
|
+
<p><strong>09.09.2009</strong><br />
|
42
|
+
Something will have happened by then.</p>
|
43
|
+
|
44
|
+
<h2>Links:</h2>
|
45
|
+
<ul class="links">
|
46
|
+
<li><a href="http://webgen.rubyforge.org/">webgen homepage</a></li>
|
47
|
+
<li><a href="http://andreasviklund.com/templates/">Free templates</a></li>
|
48
|
+
<li><a href="http://openwebdesign.org">Open Webdesign</a></li>
|
49
|
+
<li><a href="http://oswd.org">OSWD.org</a></li>
|
50
|
+
</ul>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div id="footer">
|
54
|
+
<p><a href="#">Contact us</a> | <a href="#">Privacy policy</a> | <a href="#">Sitemap</a> | <a href="#">RSS</a> | <a href="#header">Back to top</a><br />
|
55
|
+
© 2006 Your Name | Generated by <a href="http://webgen.rubyforge.org">webgen</a> | Design by <a href="http://andreasviklund.com/">Andreas Viklund</a></p>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
</body>
|
60
|
+
</html>
|