Guest User

Untitled

a guest
Jun 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. 1. Rename everything into final layout:
  2. . tt files all named .tt
  3. . none tt files all named .bin
  4. . directory structure as generated, e.g. share/lib/MyApp.pm.tt, share/root/favicon.ico.bin
  5.  
  6. 2. get new layout working
  7.  
  8. 3. get tests for back compat - i.e. the methods no longer used in Helper.pm like 'get_file'
  9. . copy Catalyst::Helper::View::TT into t/lib/TestBackCompat.pm
  10. . write test t/deprecated_methods_backcompat.t which says:
  11. use FindBin qw/$Bin/;
  12. use lib "$Bin/lib";
  13. use Test::More tests => 1;
  14.  
  15. my $helper = TestBackCompat->new( %maybe_some_params_here );
  16. my $a_section = $helper->get_file('FileName');
  17. is $a_section, 'FILECONTENTSFROM__DATA__';
  18.  
  19. 3. RFC
  20.  
  21. Looking ahead
  22.  
  23. MooseX::Getopt
Add Comment
Please, Sign In to add comment