View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Shlomi Fish > SVN-RaWeb-Light-0.60003 > SVN::RaWeb::Light



Annotate this POD

View/Report Bugs
Module Version: 0.60003   Source   Latest Release: SVN-RaWeb-Light-0.60005


SVN::RaWeb::Light - Lightweight and Fast Browser for a URLed Subversion repository similar to the default Subversion http:// hosting.



    use SVN::RaWeb::Light;

    my $app = SVN::RaWeb::Light->new(
        'url' => "svn://",



SVN::RaWeb::Light is a class implementing a CGI script for browsing a Subversion repository given as a URL, and accessed through the Subversion Repository-Access layer. Its interface emulates that of the default Subversion http://-interface, with some improvements.

To use it, install the module (using CPAN or by copying it to your path) and write the CGI script given in the SYNOPSIS with the URL to the repository passed as the 'url' parameter to the constructor.

To use it just fire up a web-browser to the URL of the script.

URL Translations

URL translations are a method to translate the current path of the script to to a URL. The latter is usually a URL of the Subversioned resource, which can be manipulated directly using the svn client and other clients.

One can specify pre-defined URL translations, inside the value of the 'url_translations' argument:

    #!/usr/bin/perl -w

    use SVN::RaWeb::Light;

    my $app = SVN::RaWeb::Light->new(
        'url' => "svn://",
        'url_translations' =>
                'label' => "Read/Write URL",
                'url' => "svn+ssh://",
                'label' => "Read URL",
                'url' => "svn://",


label specifies the label as would appear on the page. url is the URL relative to the script's base directory. The complete path would be the URL in the URL translation appended by the path that the script points to.


my $app = SVN::RaWeb::Light->new(...)

Initialises a new application.


Runs it in the current process.


Shlomi Fish, <>


Copyright (C) 2004 by Shlomi Fish

This library is free software; you can redistribute it and/or modify it under the terms of the MIT/X11 license.

syntax highlighting: