You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2012/11/26 11:26:11 UTC

svn commit: r1413543 - /isis/site/trunk/lib/view.pm

Author: danhaywood
Date: Mon Nov 26 10:26:10 2012
New Revision: 1413543

URL: http://svn.apache.org/viewvc?rev=1413543&view=rev
Log:
working on isis documentation page

Modified:
    isis/site/trunk/lib/view.pm

Modified: isis/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/isis/site/trunk/lib/view.pm?rev=1413543&r1=1413542&r2=1413543&view=diff
==============================================================================
--- isis/site/trunk/lib/view.pm (original)
+++ isis/site/trunk/lib/view.pm Mon Nov 26 10:26:10 2012
@@ -99,6 +99,21 @@ sub basic {
 }
 
 
+sub _base {
+    my $path        = shift;
+
+    my @path_components = split( m!/!, $path );
+    pop @path_components;
+    pop @path_components;
+
+    my $rel = "./";
+
+    for (@path_components) {
+        $rel .= "../";
+    }
+
+    return $rel;
+}
 1;
 
 =head1 LICENSE