package SmokeOrNot::Controller::Site;

use strict;
use warnings;

#use parent 'Catalyst::Controller';
use parent 'Catalyst::Controller::HTML::FormFu';

=head1 NAME

SmokeOrNot::Controller::Site - Catalyst Controller

=head1 DESCRIPTION

Catalyst Controller.

=head1 METHODS

=cut

=head2 index 

=cut

#sub index :Path :Args(0) {
sub index : PathPart('site') Chained('/language') Args(0) :
    FormConfig('bars/search.yml') {

    my ( $self, $c ) = @_;

    #$c->response->body('Matched SmokeOrNot::Controller::Site in Site.');

    $c->clear_flash();
    $c->forward(qw/SmokeOrNot::Controller::Bars search/);
}

=head2 about

=cut

#sub about :Path :Args(0) {
sub about : PathPart('site/about') Chained('/language') Args(0) {

    my ( $self, $c ) = @_;
}

=head1 COPYRIGHT

Copyright 2009-2010, gregor herrmann <gregor.herrmann@comodo.priv.at>

=head1 LICENSE

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

=cut

1;
