General InformationDocumentationDeveloper Articles & TopicsCommunity ForumsBlogUniversity
Mojoliciousは単なるPerlのモジュールですので、他のモジュールのインストールと同じようにとても簡単にインストールすることができます。 cpan Mojolicious WindowsでMojoliciousを試したいのであればこれで十分でしょう(YAMLのエラーがでる場合の対処法。またWebSocketの試験がタイミングによってこける場合がありますが、何回かインストールを行うと成功します。)。LinuxやMac OS Xでユーザー環境にMojoliciousをインストールしたい場合は次の手順を参考にできます。 cpanmによるローカル環境構築(CentOS) またMojoliciousは他のモジュールに依存していませんので、FTPでアップロードしてレンタルサーバーなどでも簡単に利用することができます。この手順については次の手順を参考にできます。 Windows上でMojolic
Attach files by dragging & dropping, selecting or pasting them. Uploading your files… We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM. Attaching documents requires write permission to this repository. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM. We don’t support that file type. Try again with a GIF, JPEG, JPG, MOV, MP4, PNG, SVG or WEBM.
Mojolicious is a fresh take on Perl web development, based on years of experience developing the Catalyst framework, and utilizing the latest web standards and technologies. You can get started with your project quickly, with a framework that grows with your needs. The Mojo stack provides a consistent set of components that can be used in any project. The guides cover most aspects of using the fra
Perl › Mojolicious パラメーターをハッシュリファレンスに変換するには、Mojo::Parametersクラスのto_hashメソッドを使用します。 my $hash_data = $params->to_hash; Mojolicious::Liteのサンプルです。パラメーター(クエリ文字列、POSTデータ、URLの中でキャプチャされたもの)を、ハッシュリファレンスに変換しています。 # Mojolicious::Lite get '/' => sub { my $self = shift; my $param = $self->req->params->to_hash; }; Mojolicious::ControllerオブジェクトのreqメソッドでMojo::Message::Requestオブジェクトを取得し、Mojo::Message::Requestオブジェク
First you make a template - this is just a normal HTML file with a few extra tags, the simplest being <TMPL_VAR> For example, test.tmpl: 最初にテンプレートを作ります - これは <TMPL_VAR> のようにとても簡単な、 2・3 の特殊なタグが入った普通の HTML ファイルです。 例えば、 test.tmpl: <html> <head><title>Test Template</title> <body> My Home Directory is <TMPL_VAR NAME=HOME> <p> My Path is set to <TMPL_VAR NAME=PATH> </body> </html>
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く