/[pxelator]/lib/PXElator/html.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/html.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 172 by dpavlin, Thu Aug 6 22:27:34 2009 UTC revision 188 by dpavlin, Sun Aug 9 22:05:09 2009 UTC
# Line 1  Line 1 
1  package html;  package html;
2    
3    use Data::Dump qw/dump/;
4    
5  sub table {  sub table {
6          my $cols = shift;          my $cols = shift;
7          my $th;          my $th;
# Line 32  sub tabs { Line 34  sub tabs {
34                    
35    
36  sub tt {  sub tt {
37          qq|<tt>| . join(' ', @_) . qq|</tt>|;          qq|<tt>| . join(' ', @_) . qq|</tt>| if @_;
38  }  }
39    
40  sub select {  sub select {
# Line 46  sub select { Line 48  sub select {
48          );          );
49  }  }
50    
51    sub pre {
52            qq|<pre>| . join(' ', @_) . qq|</pre>| if @_;
53    }
54    
55    sub pre_dump {
56            my $data = shift;
57            my $dump = dump( $data );
58            $dump =~ s{"([^"]+)"(\s*=>)}{$1  $2}gs;
59            $dump =~ s{"([^"]*)"}{"<b>$1</b>"}gs;
60            qq|<pre>$dump</pre>|;
61    }
62    
63  warn "loaded";  warn "loaded";
64    
65  1;  1;

Legend:
Removed from v.172  
changed lines
  Added in v.188

  ViewVC Help
Powered by ViewVC 1.1.26