• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..20-Feb-2014-

Example/H20-Feb-2014-225182

Chat.pmH A D23-Jan-20132 KiB8974

CouchWiki.pmH A D23-Jan-20134.6 KiB219188

Counter.pmH A D23-Jan-20133 KiB8173

Example.pmH A D23-Jan-2013185 118

Guess.pmH A D23-Jan-20133.1 KiB7665

HTTPAuth.pmH A D23-Jan-20132.6 KiB125115

MicroWiki.pmH A D23-Jan-2013764 1211

PODServer.pmH A D23-Jan-20136.4 KiB291259

READMEH A D23-Jan-20133.4 KiB12887

UTF_8.pmH A D23-Jan-20131.9 KiB10886

UniCodePoints.pmH A D23-Jan-20132.4 KiB11699

microwiki.psgiH A D23-Jan-2013107 86

README

1______________________________________________________________________________
2squatting Example -p 4235
3
4  http://localhost:4235/
5
6  This is the first example app I made.
7  I tried to show a little bit of everything here.
8  For sillyness points, I used CGI.pm's HTML generating functions
9  as my templating system.
10
11______________________________________________________________________________
12squatting PODServer -p 4236
13
14  http://localhost:4236/
15
16  requires:
17    Pod::Simple
18    HTML::AsSubs
19
20  This will let you browse (almost) all the POD that's
21  installed on your system.  I wrote this before I was aware of
22  Pod::Webserver which basically does the same thing.
23  However, I may still make a separate dist out of this
24  and put it on CPAN, because its output is pretty, and
25  it has some nice little usability features.
26
27  UPDATE:  Pod::Server has been uploaded to CPAN.
28
29______________________________________________________________________________
30squatting UniCodePoints -p 4237 --config count=1024
31
32  http://localhost:4237/
33
34  requires:
35    HTML::AsSubs
36
37  This is a simple utility for displaying unicode code points.
38  You can configure the default number of codepoints to display per page
39  by passing in --config count=XXX where XXX is a positive integer.
40
41______________________________________________________________________________
42squatting Chat -p 4238
43
44  http://localhost:4238/
45
46  requires
47    selfvars
48    HTML::AsSubs
49    Coro::Event
50
51  This is a port of chat-ajax-push.pl from the Continuity examples.
52  Open this app up in 2 or more different browsers and try chatting.
53
54______________________________________________________________________________
55squatting OpenID::Consumer -p 4239
56
57  http://localhost:4239/
58
59  requires
60    HTML::AsSubs
61    Net::OpenID::Consumer
62    LWPx::ParanoidAgent
63    Cache::File
64
65  This example currently shows the bare minimum you need to implement
66  an OpenID login.  It'll be improved as time goes on.
67
68______________________________________________________________________________
69squatting MicroWiki -p 4240
70
71  http://localhost:4240/
72
73  requires
74    Text::Textile
75    IO::All
76
77  metaperl from perlmonks.org wondered if a wiki could be implemented with
78  Squatting in 20 lines or less.  MicroWiki was my 17 line response.  It has
79  since been reduced to 11 lines.
80
81  http://perlmonks.org/?node_id=704372
82
83  If you find this unreadable, run it through perltidy.
84
85    perltidy < MicroWiki.pm
86
87  There's also a microwiki.psgi file that lets you run this wiki by typing:
88
89    plackup microwiki.psgi
90
91______________________________________________________________________________
92squatting CouchWiki -p 4241
93
94  http://localhost:4241/
95
96  requires
97    Clone
98    HTML::AsSubs
99    Text::Textile
100    AnyEvent::CouchDB
101
102  I received an email from someone who wanted an example of how to use
103  AnyEvent in combination with Squatting and Continuity, so I ended up
104  creating CouchWiki.
105
106  * It started out as an unobfuscated MicroWiki.
107  * Then I switched to CouchDB for storage (instead of the filesystem).
108
109  After you've created a few pages through the browser, try doing this
110  in the shell:
111
112  $ squatting CouchWiki -C
113  > recent_changes
114  > page('Home')
115
116______________________________________________________________________________
117squatting HTTPAuth -p 4242
118
119  http://localhost:4242/
120
121  requires
122    MIME::Base64
123    HTML::AsSubs
124
125  This example shows you how to implement HTTP Basic Auth in Squatting.
126  http://en.wikipedia.org/wiki/Basic_access_authentication
127
128