Age | Commit message (Collapse) | Author | Files | Lines |
|
Html;
Head sub {
End; # this would previously generate </html>, now it's an error.
};
|
|
Read: "I've no clue which style is best and everyone has their own
opinions, so let's just support everything!"
This is a breaking change for the :html5 group, but that group was only
added recently and did not yet make it into a stable TUWF release, so
there's little actual breakage.
|
|
Seems much safer. I've not tested this patch as well as I'd like, I'll
do some more testing later to see if I broke something.
|
|
|
|
There are many of them, and some may clash with commonly exported
functions by other modules. So instead of ucfirst()ing only a few
special ones, I decided to be consistend and ucfirst everything. It's
slightly uglier, though. :(
|
|
|
|
Once again inspired by Dancer2. The main improvements over
TUWF::register() are:
- Support for other HTTP methods than HEAD/GET/POST
- HTTP method filtering in the routing code
- Differentiate between literal and regex routes
- Mandate 'tuwf->capture()'
- Include the leading slash, to make it more explicit that it matches
the entire path.
I've wanted to make that last change back in
55cbbb319a135dbddfbfdd989bc0cb364edef81d, but couldn't because that
would break a lot of code. TUWF::register() still works like it used to,
so these additions shouldn't break anything.
|
|
Another inspiration from Dancer2. While Dancer2 exports a whole bunch of
such functions, TUWF's functionality is already mostly contained in a
single object, so a single function will do nicely.
|
|
(Inspired by Dancer2's captures())
|
|
|
|
|
|
|
|
To replace the not-really-nice way of assinging to $TUWF::XML::OBJ.
|
|
|
|
This removes the dependency on CGI::Cookie::XS.
reqCookie() can now also be used without arguments, in which case it
will return the list of available cookie names.
Also extended examples/MyWebsite/InfoDump.pm to list the cookies.
|
|
|
|
More because it allows me to easily test the changes to TUWF::Request
than for the sake of more examples, but I bet it can work as an example
to some people as well. :-)
|
|
end() will croak when the tags do not match, or when there's nothing
more to close.
|
|
|
|
|
|
Demonstrates how TUWF can be used for small websites.
|
|
I'll create new examples while making some improvements to the
framework.
|
|
I've chosen a MIT license for this project, I'm pretty sure nobody
would disagree with that.
|