SVN::Web::View(3pm)
β¨ SVN::Web::View β¨
okay bestie, so this is SVN::Web::View(3pm) β it lives in the User Contributed Perl Documentation collection and it's literally the action that lets you view a file in the repository. no cap. π
π NAME π
SVN::Web::View β the SVN::Web action that shows you a file in the repository. that's it. that's the whole job. slay.
π¦ SYNOPSIS π¦
in config.yaml, you set it up like this:
actions:
...
view:
class: SVN::Web::View
action_menu:
show:
- file
link_text: (view file)
...
πΈ DESCRIPTION πΈ
so what does it actually do? it shows a specific revision of a file in the Subversion repository, and it also includes the commit information for that file. like, the receipts. π₯
π OPTIONS π
revβ the revision of the file you wanna show. defaults to the repository's youngest revision, which is giving "whatever's newest, idc". BUT β and this is the important part β if that revision isn't an interesting revision for this file, the repository history gets searched to find the youngest interesting revision for this file that is less thanrev. so it goes digging. patient queen behavior. π
π TEMPLATE VARIABLES π
these are the variables hanging out in the template, bestie:
at_headβ a boolean value, saying whether the user is currently viewing the HEAD of the file in the repository. true/false vibes.contextβ always"file". always. no drama.revβ the revision that has been returned. β οΈ heads up: this is not necessarily the same as the"rev"option passed to the action. if the"rev"passed to the action is not interesting (i.e., there were no changes to the file at that revision) then the file's history is searched backwards to find the next oldest interesting revision. so like, it time-travels a lil bit. π°οΈyoungest_revβ the youngest interesting revision of the file.mimetypeβ the file's MIME type, extracted from the file's"svn:mime-type"property. if that's not set then"text/plain"is used. default era. β¨fileβ the contents of the file. the whole thing.authorβ the revision's author. the main character who did this. πdateβ the date the revision was committed, formatted according to"Time and date formatting"in SVN::Web.msgβ the revision's commit message. the caption. the lore. π
π EXCEPTIONS π
None.
like literally none. nothing. she does not throw. iconic behavior honestly. π
π COPYRIGHT π
Copyright 2003-2004 by Chia-liang Kao "<clkao@clkao.org>".
Copyright 2005-2007 by Nik Clayton "<nik@FreeBSD.org>".
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
and that's the whole page bestie! this was perl v5.40.1, dated 2025-04-09, and it's the SVN::Web::View(3pm) page from the User Contributed Perl Documentation. mwah. π
π¦ where this page comes from
- debian trixie: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- ubuntu resolute: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- ubuntu stonking: libsvn-web-perl 0.63-4 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms