[Bps-public-commit] r14361 - in Prophet/sites/syncwith.us: . html html/prophet html/sd

jesse at bestpractical.com jesse at bestpractical.com
Tue Jul 22 02:46:53 EDT 2008


Author: jesse
Date: Tue Jul 22 02:46:52 2008
New Revision: 14361

Added:
   Prophet/sites/syncwith.us/
   Prophet/sites/syncwith.us/html/
   Prophet/sites/syncwith.us/html/_elements/
   Prophet/sites/syncwith.us/html/_elements/sidebar
   Prophet/sites/syncwith.us/html/_elements/wrapper
   Prophet/sites/syncwith.us/html/index.html
   Prophet/sites/syncwith.us/html/prophet/
   Prophet/sites/syncwith.us/html/prophet/contact
   Prophet/sites/syncwith.us/html/prophet/download
   Prophet/sites/syncwith.us/html/prophet/index.html
   Prophet/sites/syncwith.us/html/sd/
   Prophet/sites/syncwith.us/microserver

Log:
* first pass at content. needs more content

Added: Prophet/sites/syncwith.us/html/_elements/sidebar
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/html/_elements/sidebar	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,16 @@
+<ul class="sidebar">
+<li><a href="/">Home</a>
+<li><a href="/sharecropping">Why?</a>
+<li>
+Prophet
+<ul>
+<li><a href="/prophet/">About Prophet</a>
+<li><a href="/prophet/download">Get Prophet</a>
+</ul>
+<li>SD<ul>
+<li><a href="/sd/">About SD</a>
+<li><a href="/sd/screenshots">SD screenshots</a>
+<li><a href="/sd/using">Using SD</a>
+<li><a href="/sd/download">Get SD</a>
+</ul>
+</ul>

Added: Prophet/sites/syncwith.us/html/_elements/wrapper
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/html/_elements/wrapper	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,15 @@
+<html>
+<head>
+<title><%$title || 'syncwith.us' %></title>
+<body>
+<h1>syncwith.us</h1>
+% if ($title) {
+<h2><%$title%></h2>
+% }
+<%$m->content|n%>
+<& sidebar&>
+</body>
+</html>
+<%args>
+$title => undef
+</%args>

Added: Prophet/sites/syncwith.us/html/index.html
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/html/index.html	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,2 @@
+<&|/_elements/wrapper, title => 'Disconnected peer to peer replication'&>
+</&>

Added: Prophet/sites/syncwith.us/html/prophet/contact
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/html/prophet/contact	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,5 @@
+<&|/_elements/wrapper, title => 'Get in touch' &>
+<p>Despite Prophet being designed for "offline" replication, Prophet's developers are nearly constantly online.  You can usually find us on IRC and can always contact us by email.</p>
+<h3>IRC</h3>
+<h3>Electronic Mail</h3>
+</&>

Added: Prophet/sites/syncwith.us/html/prophet/download
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/html/prophet/download	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,17 @@
+<&| /_elements/wrapper, title => 'Get Prophet' &>
+<p>At this early stage of the game, you should download Prophet directly from its home in Subversion. The following command will get you a copy of the source tree you can install:</p>
+<blockquote>
+<pre>svn co http://code.bestpractical.com/bps-public/Prophet/trunk prophet</pre>
+</blockquote>
+<p>Once you've downloaded Prophet, you can install it:</p>
+<blockquote>
+<pre>cd prophet
+PERL_MM_USE_DEFAULT=1 perl Makefile.PL
+make test
+make install
+</pre>
+</blockquote>
+<p>In the hopefully unlikely event that Prophet doesn't pass its tests, please <a href="/contact">tell the developers about it</a> so we can improve things.
+</p>
+
+</&>

Added: Prophet/sites/syncwith.us/html/prophet/index.html
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/html/prophet/index.html	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,2 @@
+<&|/_elements/wrapper, title => 'Prophet!' &>
+</&>

Added: Prophet/sites/syncwith.us/microserver
==============================================================================
--- (empty file)
+++ Prophet/sites/syncwith.us/microserver	Tue Jul 22 02:46:52 2008
@@ -0,0 +1,25 @@
+              #!/usr/bin/perl
+               
+               
+               
+               my $server = MyApp::Server->new();
+
+               $server->run;
+
+               package MyApp::Server;
+               use base qw/HTTP::Server::Simple::Mason/;
+              use File::Spec;
+
+            sub handle_request {
+                my $self = shift;
+                my $cgi = shift;
+                $x = $cgi->path_info;
+                $x =~ s/\/index.html$/\//g;
+                $cgi->path_info($x);
+                $self->SUPER::handle_request($cgi);
+            }
+
+               sub mason_config {
+                   return ( comp_root => File::Spec->rel2abs('./html')
+                    , static_source => 0 );
+}



More information about the Bps-public-commit mailing list