2010������07·���19������
TT ������\���\���\¹\������¼\������¹��������������¡�tpage ������������������\³\���\���\���\���\���\���\������¼\������̏����؏�����������������������¹��¡��³������������������»��������Ï�������¡�\³\���\���\������«������ template �����ҡ�·�����Ï��³���������̏����������������¡������������������̏��������¹��������¡�
\���\���\������¼\���������ġ�·������������«������²¼µ���������������Ï�����������������������¡�
$ cat hoge.tt package [% module %]; use stict; use warnings; use 5.008001; our $VERSION = '0.01'; 1; __END__ =head1 NAME [% module %] - =head1 SYNOPSIS use [% module %]; =head1 DESCRIPTION [% module %] is =head1 AUTHOR [% author %] E<lt>[% email %]E<gt> =head1 SEE ALSO =head1 LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut
tapge �����ҏ��������«������������������������������
$ tpage --define module=Foo --define author=xaicron --define [email protected] hoge.tt package Foo; use stict; use warnings; use 5.008001; our $VERSION = '0.01'; 1; __END__ =head1 NAME Foo - =head1 SYNOPSIS use Foo; =head1 DESCRIPTION Foo is =head1 AUTHOR xaicron E<lt>[email protected]<gt> =head1 SEE ALSO =head1 LICENSE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut
���³�����я������������������������������������������¹��¡������ޏ��������¹��������¡�
������������
author ���������« email ���������«���������������������½�����я����������������Џ����������������я��«������������²��я����Ώ��������¹�����������������������������¹���������쏢��
���½���³������ .tpagerc ���������¹����������
$ENV{HOME}/.tpagerc ������
define author = xaicron define email = [email protected]
���������«½��Џ�������������¡�¼«����돪���쏢���������������я����������������������������������̏���
����������¡� eval_perl option ���������«����������������������¡������������»��Џ��������«�����ҏ���돪���쏢����½Ð���·�����ď�����¾���¹������������«������
$ cat timestapm.tt [% PERL %]print scalar localtime[% END %] $ tpage --eval_perl timestamp.tt Mon Jul 19 13:09:13 2010
���������«���������������������¹���̏�¡���²���»������������¹���������������������������я�����������������������¡�
$ cat ~/.tpagerc define author = xaicron define email = xaicron {at} capn.org eval_perl
�����Ώ����ď�����������½��Џ����������������쏢�ޏ��Ð��¡�¾�����������������⏢�������������������������¹
������������������
\���\���\������¼\������������ҏ�����·��ď��������«��������¡�OreOre pmsetup ������»��������Ï��·��¡�½��Џ��»��������������ď�������¡����ď�����������������\���\���\���\���������\³\���\��⏢�·������½��Џ����¹��𡯏�����������������¡�¼�����돪�����\���\���\������¼\���½��Џ��������������������������������»��������Ï��³�������������������я��������������������������������¹����������
��������������¡��·µ��»���������¼�������\¹\���\���\��\������������ҏ�����·��ď��������«�����������������������𡭢�������������»�����𡯏��������¹��¡�