Catalyst 20090822 Osc Nagoya

1,052 views

Published on

Perl の WAF を Catalyst を使ってみたよ

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,052
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Catalyst 20090822 Osc Nagoya

    1. 1. Catalyst 2008/ 8/22 @OSC Nagoya id:clairvy
    2. 2. Catalyst
    3. 3. Catalyst • Perl WAF • MVC • CPAN (TT, DBIC) • Rails
    4. 4. JPA • HTML::FormFu ( / ) • DBIx::Class (O/R ) • Data::Localize ( ) • Test::WWW::Mechanize::Catalyst ( )
    5. 5. HTML::FormFu • •
    6. 6. --- elements: - type: Text name: user_name constraints: - Require - type: Submit name: submit
    7. 7. View (TT) <body> <h1>HTML::FormFu </h1> [% form %] </body>
    8. 8. View (TT) <body> <h1>HTML::FormFu </h1> <form action=”” method=”POST”> <div> <input type=”text” name=”user_name” /> </div> <input type=”submit” name=”submit” /> </form> </body>
    9. 9. Controller use parent ‘Catalyst::Controller::HTML::FormFu’; sub form : Local FormConfig { my ( $self, $c ) = @_; my $form = $c->stash->{form}; if ($form->submitted_and_valid) { # } # $form->default_values($model) unless ($form->submitted); }
    10. 10. Constraints
    11. 11. • Catalyst • • YAPC::Asia 2009 (2009/ 9/10-11)

    ×