Home | Mirror | Search

第 41 章 Frameworks

目錄

1. Catalyst Web framework
1.1. Template
2. Mojolicious

1. Catalyst Web framework

Install

sudo apt-get update
sudo apt-get install libdbd-sqlite3-perl libcatalyst-perl libcatalyst-modules-perl libconfig-general-perl
		

Setup

$ catalyst.pl MyApp
$ cd MyApp
$ script/myapp_create.pl controller Library::Login
		

Run

$ script/myapp_server.pl
		

Test

http://localhost:3000/
http://localhost:3000/library/login/
		

1.1. Template

			
[% api_key.${page.current_domain} %]
			
			
comments powered by Disqus