Changeset 12549 for lang/perl/chalow
- Timestamp:
- 05/27/08 19:47:07 (5 years ago)
- Location:
- lang/perl/chalow/branches/perlnews
- Files:
-
- 2 modified
-
chalow (modified) (4 diffs)
-
lib/App/Chalow/Template.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/chalow/branches/perlnews/chalow
r12541 r12549 308 308 ### ���ޥ�饤���topt::Long::Configure('bundling'); 309 309 my ($opt_topn_tmp, $outputdir, $quiet_mode, $opt_css_file, $debug_mode, 310 $update_by_size, $conf_file, $stop_date );310 $update_by_size, $conf_file, $stop_date, $assets_dir); 311 311 my $gor = GetOptions('n|top-n=n' => \$opt_topn_tmp, 312 312 'o|output-dir=s' => \$outputdir, … … 317 317 'q|quiet' => \$quiet_mode, 318 318 '8|utf8' => \$utf8_mode, 319 'd|debug' => \$debug_mode); 319 'd|debug' => \$debug_mode, 320 'a|assets=s' => \$assets_dir); 320 321 321 322 if (@ARGV == 0 or $gor == 0) { … … 331 332 -8, --utf8 utf8 mode 332 333 -d, --debug debug mode 334 -a, --assets=DIR assets dir 333 335 USAGE 334 336 ; … … 347 349 348 350 $outputdir = "." if (not defined $outputdir); 351 352 # assets dir ������App::Chalow::Template::assets_dir = ($assets_dir || $FindBin::Bin) . '/'; 349 353 350 354 # �桼�����ե������ꥳ�ޥ�饤���ͥ������ -
lang/perl/chalow/branches/perlnews/lib/App/Chalow/Template.pm
r12545 r12549 7 7 8 8 # 超適当 9 use FindBin; 10 my $assets_dir = File::Spec->catfile($FindBin::Bin, 'assets'); 11 my $template = Template->new({ INCLUDE_PATH => "$assets_dir/template" }); 9 our $assets_dir; 10 my $template; 12 11 13 12 ### インデックスページ(index.html)を作る 14 13 sub index { 14 $template ||= Template->new({ INCLUDE_PATH => "$assets_dir/template" }); 15 15 my($class, $cl, $opt_topn, $month_page, $changelog_name, $changelog_description, $css_file, $what_time_is_it_now, $signature, $month_page_list, $latest_item_list, $category_list, $rss_filename, $outputdir, $replace_once, $update_by_size, $utf8_mode, $quiet_mode, 16 16 $calendar_style, … … 91 91 92 92 sub item { 93 $template ||= Template->new({ INCLUDE_PATH => "$assets_dir/template" }); 93 94 my($class, $cl, $opt_topn, $month_page, $changelog_name, $changelog_description, $css_file, $what_time_is_it_now, $signature, $month_page_list, $latest_item_list, $category_list, $rss_filename, $outputdir, $replace_once, $update_by_size, $utf8_mode, $quiet_mode, 94 95 $clog_url,
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)