Catalyst
            2008/ 8/22
           @OSC Nagoya
             id:clairvy
Catalyst
Catalyst

• Perl WAF
• MVC
• CPAN        (TT, DBIC)

•            Rails
JPA

• HTML::FormFu (         /           )

• DBIx::Class (O/R         )

• Data::Localize (             )

• Test::WWW::...
HTML::FormFu


•
•
---
elements:
  - type: Text
    name: user_name
    constraints:
      - Require
  - type: Submit
    name: submit
View       (TT)
<body>
<h1>HTML::FormFu      </h1>
[% form %]
</body>
View               (TT)
<body>
<h1>HTML::FormFu                  </h1>
<form action=”” method=”POST”>
<div>
<input type=”t...
Controller
use parent ‘Catalyst::Controller::HTML::FormFu’;
sub form : Local FormConfig {
  my ( $self, $c ) = @_;
  my $fo...
Constraints
• Catalyst
•
• YAPC::Asia 2009 (2009/ 9/10-11)
Catalyst 20090822 Osc Nagoya
Catalyst 20090822 Osc Nagoya
Catalyst 20090822 Osc Nagoya
Upcoming SlideShare
Loading in...5
×

Catalyst 20090822 Osc Nagoya

842

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
842
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
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)
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×