repo.or.cz
/
sgn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #2754 from solgenomics/topic/fix_homepage_add_accessions_dialog
[sgn.git]
/
mason
/
util
/
include_file.mas
blob
bd1dddc394d2b3b3d703208a551281b43fc7eb80
1
2
<%doc>
3
4
=head1 NAME
5
6
File viewer - displays the contents of a file
7
8
=head1 DESCRIPTION
9
10
Arguments: file. Fully qualified path to the file.
11
12
=head1 AUTHOR
13
14
Lukas Mueller
15
16
=cut
17
18
</%doc>
19
20
21
<%args>
22
23
$file
24
25
</%args>
26
27
<%perl>
28
29
use File::Slurp qw | slurp |;
30
31
my $contents = 'Content not available.';
32
33
eval {
34
$contents = slurp($file);
35
};
36
37
</%perl>
38
39
<% $contents %>
40
41
42