Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 8 章 Frameworks

目录

8.1. Catalyst Web framework
8.1.1. Template
8.2. Mojolicious

8.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/
		

8.1.1. Template

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