13 years agoexperimentally expose psgi $env as $_[ENV] with-ENV
Matt S Trout [Tue, 11 May 2010 23:18:09 +0000]
experimentally expose psgi $env as $_[ENV]

14 years agoswitch to using Plack, add FCGI support, use Plack::Test instead of HTTP::Request...
markie [Mon, 22 Feb 2010 05:26:04 +0000]
switch to using Plack, add FCGI support, use Plack::Test instead of HTTP::Request::AsCGI

14 years agoskeleton BUILDALL support
Matt S Trout [Wed, 20 Jan 2010 14:56:54 +0000]
skeleton BUILDALL support

14 years agofixed url path segment match regex so that trailing slashes in /path/info/ + query...
Josh McMichael [Fri, 18 Dec 2009 17:31:40 +0000]
fixed url path segment match regex so that trailing slashes in /path/info/ + query string disptaches match properly; added tests for /path/info/ + query string dispatches

14 years agot/tags.t: HTML comments ok
Jakub Narebski [Wed, 16 Dec 2009 21:18:30 +0000]
t/tags.t: HTML comments ok

Check that HTML comments, <!-- comment -->, work correctly.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: HTML tags which conflict with Perl built-ins ok
Jakub Narebski [Wed, 16 Dec 2009 21:12:23 +0000]
t/tags.t: HTML tags which conflict with Perl built-ins ok

Check that tags which conflict with built-in Perl functions or
operators correctly: tested for <link>, <tr> and <sub> elements.

While at it check that <elem ... /> form for elements without closing
tag, like <link> element, works correctly.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agoFix escaping of '"' in XML::Tags::to_xml_string
Jakub Narebski [Wed, 16 Dec 2009 10:57:27 +0000]
Fix escaping of '"' in XML::Tags::to_xml_string

Double quote ('"') should be escaped as '&quot;', not as '&quot'.
This fixes a bug found in 'Escaping ok' test in t/tags.t

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test escaping of attributes more extensively
Jakub Narebski [Tue, 15 Dec 2009 21:27:11 +0000]
t/tags.t: Test escaping of attributes more extensively

Test escaping of attributes of XML element not only for '&', but also
for '<', '>' and '"'.

Test currently fails for escaping '"', which should be escaped as
'&quot;' (at least for attribute with value delimited with '"'), and
not as '&quot' (note missing ';').

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test that Document Type Declaration (DTD or doctype) works
Jakub Narebski [Tue, 15 Dec 2009 13:47:36 +0000]
t/tags.t: Test that Document Type Declaration (DTD or doctype) works

HTML documents are required to start with a Document Type Declaration
(informally, a 'doctype'). In browsers, the function of the doctype is
to indicate the rendering mode - particularly to avoid the quirks
mode.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agot/tags.t: Test that XML processing instruction (<?xml ... ?>) works
Jakub Narebski [Sat, 12 Dec 2009 21:59:56 +0000]
t/tags.t: Test that XML processing instruction (<?xml ... ?>) works

We want to be able to e.g. put '<?xml version="1.0" encoding="UTF-8"?>'
XML declaration at the top of XHTML file.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agoAdd .gitignore
Tomas Doran [Fri, 11 Dec 2009 09:41:20 +0000]
Add .gitignore

14 years agot/tags.t: Test of automatic escaping of user data
Jakub Narebski [Fri, 11 Dec 2009 01:54:52 +0000]
t/tags.t: Test of automatic escaping of user data

Test that user data passed to XML::Tags::to_xml_string is automatically escaped
(to protect against cross-side scripting attacks), and that mechanism to turned
automatic off escaping works.

This test can also serve as example on how to turn off autoescaping of user
data.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>

14 years agotests for html escaping (jnareb)
Arthur Axel 'fREW' Schmidt [Fri, 11 Dec 2009 05:16:01 +0000]
tests for html escaping (jnareb)

14 years agoswitch to Syntax::Keyword::Gather
Arthur Axel 'fREW' Schmidt [Wed, 9 Dec 2009 00:11:08 +0000]
switch to Syntax::Keyword::Gather

14 years agochanges for css_declare
Arthur Axel 'fREW' Schmidt [Sat, 5 Dec 2009 09:36:39 +0000]
changes for css_declare

14 years agoMerge branch 'css_declare'
Arthur Axel 'fREW' Schmidt [Sat, 5 Dec 2009 09:35:10 +0000]
Merge branch 'css_declare'

14 years agonew html tag list from http://www.quackit.com/html_5/tags/
Arthur Axel 'fREW' Schmidt [Fri, 4 Dec 2009 03:10:00 +0000]
new html tag list from quackit.com/html_5/tags/

14 years agoadd lots of CSS properties (http://www.eskimo.com/~bloo/indexdot/css/propindex/all...
Arthur Axel 'fREW' Schmidt [Thu, 3 Dec 2009 05:38:18 +0000]
add lots of CSS properties (eskimo.com/~bloo/indexdot/css/propindex/all.htm)

14 years agobetter test for unimporting
Arthur Axel 'fREW' Schmidt [Thu, 3 Dec 2009 05:14:11 +0000]
better test for unimporting

14 years agoLook how dumb I am
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 14:24:31 +0000]
Look how dumb I am

14 years agoCSS::Declare works with arrays instead of arrayrefs
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 14:24:15 +0000]
CSS::Declare works with arrays instead of arrayrefs

14 years agosuper basic tests for CSS::Declare, also dep
Arthur Axel 'fREW' Schmidt [Tue, 1 Dec 2009 05:31:52 +0000]
super basic tests for CSS::Declare, also dep

14 years agochanges line for 0.002 and bump version in Web/Simple.pm
Matt S Trout [Tue, 1 Dec 2009 02:30:20 +0000]
changes line for 0.002 and bump version in Web/Simple.pm

14 years agoadd hello-world.cgi example as file
Matt S Trout [Mon, 30 Nov 2009 22:54:00 +0000]
add hello-world.cgi example as file

14 years agoremove erroneous dispatch test
Matt S Trout [Mon, 30 Nov 2009 22:26:38 +0000]
remove erroneous dispatch test

14 years agosub {} == undef proto, sub () {} == '' proto
Matt S Trout [Mon, 30 Nov 2009 22:17:20 +0000]
sub {} == undef proto, sub () {} == '' proto

14 years agofix Application.pm to handle empty sub protos correctly
Matt S Trout [Mon, 30 Nov 2009 21:16:59 +0000]
fix Application.pm to handle empty sub protos correctly

14 years agoMerge branch 'master' of catagits@git.shadowcat.co.uk:Web-Simple
Arthur Axel 'fREW' Schmidt [Fri, 27 Nov 2009 17:04:18 +0000]
Merge branch 'master' of catagits@git.shadowcat.co.uk:Web-Simple

14 years agowrap tests in blocks and a failing tests for ?foo=
Arthur Axel 'fREW' Schmidt [Fri, 27 Nov 2009 17:03:55 +0000]
wrap tests in blocks and a failing tests for ?foo=

14 years agoexamples, and rearrangement
Arthur Axel 'fREW' Schmidt [Fri, 27 Nov 2009 06:13:11 +0000]
examples, and rearrangement

14 years agoupdate Changes
Matt S Trout [Fri, 27 Nov 2009 02:51:34 +0000]
update Changes

14 years agoadd as_psgi_app and make run_if_script return it for plackup
Matt S Trout [Fri, 27 Nov 2009 02:48:57 +0000]
add as_psgi_app and make run_if_script return it for plackup

14 years agofix some really basic doc
Arthur Axel 'fREW' Schmidt [Thu, 26 Nov 2009 17:46:18 +0000]
fix some really basic doc

14 years agofix obvious errors in dispatchex
Arthur Axel 'fREW' Schmidt [Thu, 26 Nov 2009 16:12:37 +0000]
fix obvious errors in dispatchex

14 years agosynopsis
Arthur Axel 'fREW' Schmidt [Thu, 26 Nov 2009 15:44:43 +0000]
synopsis

14 years agodist files
Matt S Trout [Tue, 24 Nov 2009 22:08:29 +0000]
dist files

14 years agonuke rogue Data::Dumper::Concise invocation
Matt S Trout [Tue, 24 Nov 2009 22:08:15 +0000]
nuke rogue Data::Dumper::Concise invocation

14 years agoPOD cleanup, extended warning and changes section
Matt S Trout [Tue, 24 Nov 2009 22:07:39 +0000]
POD cleanup, extended warning and changes section

14 years agoamend post.t to work with new body parsing rules
Matt S Trout [Tue, 24 Nov 2009 21:36:07 +0000]
amend post.t to work with new body parsing rules

14 years agoimplement ?:foo syntax and make ?foo positional
Matt S Trout [Tue, 24 Nov 2009 21:28:56 +0000]
implement ?:foo syntax and make ?foo positional

14 years agoswitch dispatch [] to dispatch {}
Matt S Trout [Mon, 23 Nov 2009 22:34:58 +0000]
switch dispatch [] to dispatch {}

14 years agofirst cut at body matching
Matt S Trout [Mon, 23 Nov 2009 21:51:31 +0000]
first cut at body matching

14 years agochange filter_response to response_filter in the places I got it wrong
Matt S Trout [Mon, 23 Nov 2009 21:45:45 +0000]
change filter_response to response_filter in the places I got it wrong

14 years agoworking query parameter handling
Matt S Trout [Mon, 23 Nov 2009 19:13:57 +0000]
working query parameter handling

14 years agofirst cut of query/body parsing, no body support, no tests
Matt S Trout [Sun, 22 Nov 2009 17:30:11 +0000]
first cut of query/body parsing, no body support, no tests

14 years agosimple param parser
Matt S Trout [Sun, 22 Nov 2009 15:04:40 +0000]
simple param parser

14 years agoexplain dispatch subroutine more
Matt S Trout [Sun, 22 Nov 2009 08:30:51 +0000]
explain dispatch subroutine more

14 years agosubdispatch
Matt S Trout [Sun, 22 Nov 2009 08:07:00 +0000]
subdispatch

14 years ago/foo/*/... syntax
Matt S Trout [Sun, 22 Nov 2009 04:27:02 +0000]
/foo/*/... syntax

14 years agodocument new dispatcher features
Matt S Trout [Sun, 22 Nov 2009 04:02:05 +0000]
document new dispatcher features

14 years agoimplement !
Matt S Trout [Sun, 22 Nov 2009 04:01:28 +0000]
implement !

14 years agonesting error message
Matt S Trout [Sun, 22 Nov 2009 03:53:03 +0000]
nesting error message

14 years agoimplement ()
Matt S Trout [Sun, 22 Nov 2009 03:43:41 +0000]
implement ()

14 years agotest three combination |
Matt S Trout [Sun, 22 Nov 2009 03:27:13 +0000]
test three combination |

14 years agoimplement | dispatch combinator
Matt S Trout [Sun, 22 Nov 2009 03:26:17 +0000]
implement | dispatch combinator

14 years agomore renaming and cleanup
Matt S Trout [Sat, 21 Nov 2009 23:42:21 +0000]
more renaming and cleanup

14 years agoadd return so code doesn't explode after use
Matt S Trout [Sat, 21 Nov 2009 22:15:12 +0000]
add return so code doesn't explode after use

14 years agoadd %INC entry setting to Web::Simple import() method
Matt S Trout [Sat, 21 Nov 2009 21:56:00 +0000]
add %INC entry setting to Web::Simple import() method

14 years agomore dispatch strategy documentation
Matt S Trout [Thu, 12 Nov 2009 20:41:46 +0000]
more dispatch strategy documentation

14 years agostart of dispatch strategy docs
Matt S Trout [Wed, 11 Nov 2009 22:35:31 +0000]
start of dispatch strategy docs

14 years agoswitched to Web::Simple::Dispatcher
Matt S Trout [Wed, 11 Nov 2009 20:52:34 +0000]
switched to Web::Simple::Dispatcher

14 years agofirst chunk o' docs
Matt S Trout [Wed, 4 Nov 2009 18:27:00 +0000]
first chunk o' docs

14 years agodefault default_config method
Matt S Trout [Wed, 4 Nov 2009 18:23:18 +0000]
default default_config method

14 years agoadd ** to capture unlimited path parts
Matt S Trout [Wed, 4 Nov 2009 18:20:05 +0000]
add ** to capture unlimited path parts

14 years agoperl bloggery.cgi / runs get request
Matt S Trout [Wed, 28 Oct 2009 18:31:04 +0000]
perl bloggery.cgi / runs get request

14 years agoI R RETARD. fix 500 errors
Matt S Trout [Wed, 28 Oct 2009 18:30:41 +0000]
I R RETARD. fix 500 errors

14 years agoadd presentation files from ipw 2009
Matt S Trout [Fri, 23 Oct 2009 13:40:31 +0000]
add presentation files from ipw 2009

14 years agopath tweaks and shebang line
Matt S Trout [Thu, 22 Oct 2009 20:04:45 +0000]
path tweaks and shebang line

14 years agoredispatch_to
Matt S Trout [Thu, 22 Oct 2009 20:02:00 +0000]
redispatch_to

14 years agofix nascent bug in bloggery.cgi
Matt S Trout [Thu, 22 Oct 2009 19:09:33 +0000]
fix nascent bug in bloggery.cgi

14 years agoswitch to map as a collection method - thanks to jnthn (and good luck with rakudo...
Matt S Trout [Thu, 22 Oct 2009 18:40:30 +0000]
switch to map as a collection method - thanks to jnthn (and good luck with rakudo vistar, mate ...)

14 years agouse overload::constant to escape attributes within <foo ...>
Matt S Trout [Thu, 22 Oct 2009 18:26:20 +0000]
use overload::constant to escape attributes within <foo ...>

14 years agosketch test showing output
Matt S Trout [Thu, 22 Oct 2009 17:48:31 +0000]
sketch test showing output

14 years agofirst cut of Web-Simple
Matt S Trout [Thu, 22 Oct 2009 16:57:12 +0000]
first cut of Web-Simple

14 years agoswitch to + separated for sections
Matt S Trout [Thu, 22 Oct 2009 15:42:05 +0000]
switch to + separated for sections

14 years agodispatch parser
Matt S Trout [Thu, 22 Oct 2009 15:01:25 +0000]
dispatch parser

14 years agorename sanitize to to_xml_string, add to_html_string
Matt S Trout [Thu, 22 Oct 2009 14:46:42 +0000]
rename sanitize to to_xml_string, add to_html_string

14 years agoadd test files
Matt S Trout [Thu, 22 Oct 2009 10:11:56 +0000]
add test files

14 years agocomment this up the arseholes
Matt S Trout [Thu, 22 Oct 2009 10:11:44 +0000]
comment this up the arseholes

14 years agocleanup to _set_glob function
Matt S Trout [Thu, 22 Oct 2009 10:09:44 +0000]
cleanup to _set_glob function

14 years agocleanup glob override
Matt S Trout [Thu, 22 Oct 2009 10:08:14 +0000]
cleanup glob override

14 years agoadd sanitize sub
Matt S Trout [Wed, 21 Oct 2009 18:06:09 +0000]
add sanitize sub

14 years agomake XML::Tags return scalarrefs
Matt S Trout [Wed, 21 Oct 2009 18:01:21 +0000]
make XML::Tags return scalarrefs

14 years agobasic HTML tags
Matt S Trout [Wed, 21 Oct 2009 16:34:43 +0000]
basic HTML tags

14 years agofirst cut of XML::Tags
Matt S Trout [Wed, 21 Oct 2009 16:14:29 +0000]
first cut of XML::Tags