/[Frey]/trunk/lib/Frey/Web.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 /trunk/lib/Frey/Web.pm

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

revision 546 by dpavlin, Wed Nov 26 20:48:07 2008 UTC revision 568 by dpavlin, Thu Nov 27 22:09:59 2008 UTC
# Line 1  Line 1 
1  package Frey::Web;  package Frey::Web;
2  use Moose::Role;  use Moose::Role;
3    
4    with 'Frey::Session';
5    
6  use Frey::Types;  use Frey::Types;
7    
8  use Continuity::Widget::DomNode;  #use Continuity::Widget::DomNode;
9  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
10  use Carp qw/confess cluck/;  use Carp qw/confess cluck/;
11  use File::Slurp;  use File::Slurp;
# Line 105  sub popup_dropdown { Line 107  sub popup_dropdown {
107          }          }
108  }  }
109    
 sub dom2html {  
 #       warn "## dom2html ",dump( @_ );  
         return Continuity::Widget::DomNode->create( @_ )->to_string;  
 }  
   
110  sub _inline_path {  sub _inline_path {
111          my ( $self, $path ) = @_;          my ( $self, $path ) = @_;
112          -s $path < $self->inline_smaller_than;          -s $path < $self->inline_smaller_than;
# Line 333  sub status_parts { Line 330  sub status_parts {
330          warn "## status parts ", dump( map { keys %$_ } @status );          warn "## status parts ", dump( map { keys %$_ } @status );
331  }  }
332    
333    =for debug
334    
335  sub DEMOLISH {  sub DEMOLISH {
336          my ( $self ) = @_;          my ( $self ) = @_;
337          warn "## $self DEMOLISH status ", $#status + 1, " elements ", dump( map { keys %$_ } @status ) if @status;          warn "## $self DEMOLISH status ", $#status + 1, " elements ", dump( map { keys %$_ } @status ) if @status;
338  }  }
339    
340    =cut
341    
342  =head2 add_icon  =head2 add_icon
343    
344    Frey::Foo->add_icon;            # /static/icons/Frey/Foo.png    Frey::Foo->add_icon;            # /static/icons/Frey/Foo.png
# Line 355  sub icon_path { Line 356  sub icon_path {
356                  warn "# $class from $self icon_path $path";                  warn "# $class from $self icon_path $path";
357                  return $path;                  return $path;
358          } else {          } else {
359                  warn "TODO: add $path icon for $class";                  $self->TODO( "add $path icon for $class" );
360                  return undef;                  return undef;
361          }          }
362  }  }

Legend:
Removed from v.546  
changed lines
  Added in v.568

  ViewVC Help
Powered by ViewVC 1.1.26