Click here to load reader
Upload
hiroaki-kobayasi
View
262
Download
1
Embed Size (px)
Citation preview
YATT::Lite で Session 使う例〜
小林 弘明CPAN ID: hkoba
Twitter: hkoba
プロフィール
● perl5 歴 ( 多分 1994?から)
● 学生時代に Perl/Tk (800.400?)の日本語化● Oreilly の Perl Conference に呼んでもらえた!● 今は個人事業主(一応)
– CPANモジュール: YATT::Lite
– perl 屋さん募集中– FastCGI 15年目
テンプレートエンジン作ってます
● YATT::Lite– https://github.com/hkoba/yatt_lite
● “use strict” なテンプレートエンジン– Spell miss を静的に検出するぜ!
Entity で変数とか関数とか表す
● &yatt:foo; $foo● &yatt:param(foo);
– $this->entity_param('foo')
– sub { my ($v) = @_; $CON->param($v); }
Session の具体例● Plack::Middleware::Session の例
– https://github.com/hkoba/yl-examples/blob/master/ex1/app.psgi
– https://github.com/hkoba/yl-examples/blob/master/ex1/public/index.yatt
● Plack::Middleware::Session::Simple– と Plack::Session::Store::File を組み合わせた場合– https://github.com/hkoba/yl-examples/blob/master/ex2/app.psgi
– (テンプレートは同じ)
(おしまい><)
Session の具体例● Plack::Middleware::Session の例
– https://github.com/hkoba/yl-examples/blob/master/ex1/app.psgi
– https://github.com/hkoba/yl-examples/blob/master/ex1/public/index.yatt
● Plack::Middleware::Session::Simple– と Plack::Session::Store::File を組み合わせた場合– https://github.com/hkoba/yl-examples/blob/master/ex2/app.psgi
– (テンプレートは同じ)
(おしまい><)