鈍足ランナーのIT日記

走るのが好きな5流のITエンジニアのブログ。

趣味の範囲は広いけど、どれも中途半端なクソブロガー楽しめるWebアプリを作ってあっと言わせたい。サーバーサイドPerl(Mojolicious)、クライアントサイドVue.js。Arduinoにも触手を伸ばす予定。

2013-06-07から1日間の記事一覧

Mojoliciousのlayoutヘルパーで指定したlayoutのheadの中身を可変にしたパート2

名前付きcontentを使う もう少し、ドキュメントを読み込み、前回エントリとは違う方法を探してみました。 exapmle/root.html.ep % layout 'hoge'; % content_for head => begin <script> function init(){} </script> % end <p>hello world</p> layouts/hoge.html.ep <html> <head> <title>dokechin site</title> </head></html>…