package SL::Layout::None;

use strict;
use parent qw(SL::Layout::Base);

use List::MoreUtils qw(apply);

sub javascripts_inline {
  my ($self)  = @_;

  my $datefmt = apply {
    s/d+/dd/gi;
    s/m+/mm/gi;
    s/y+/yy/gi;
  } $::myconfig{dateformat};

  return $self->presenter->render(
    'layout/javascript_setup',
    { type => 'js' },
    datefmt      => $datefmt,
    focus        => $::request->layout->focus,
    ajax_spinner => 1,
  );
}

sub use_javascript {
  my $self = shift;
  qw(
    jquery.js
    common.js
    namespace.js
    kivi.js
  ),
  'locale/'. $::myconfig{countrycode} .'.js',
  $self->SUPER::use_javascript(@_);
}

sub use_stylesheet {
  my $self = shift;
  qw(
    style.css
  ),
  $self->SUPER::use_stylesheet(@_);
}

1;
