Skip to content

Commit

Permalink
More doc tweaks, adjust .shipit in anticipation of rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobtfish authored and Tomas Doran committed Feb 3, 2009
1 parent 8e61c4b commit d086c97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .shipit
@@ -1,7 +1,7 @@
# auto-generated shipit config file.
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist

svk.tagpattern = //mirror/Catalyst-View-TT-XHTML/1.000/tags/%v
svn.tagpattern = http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-ContentNegotiation-XHTML/1.000/tags/%v

# svn.tagpattern = MyProj-%v
# svn.tagpattern = http://code.example.com/svn/tags/MyProj-%v
Expand Down
20 changes: 13 additions & 7 deletions lib/Catalyst/View/ContentNegotiation/XHTML.pm
Expand Up @@ -55,9 +55,9 @@ __END__
=head1 NAME
Catalyst::View::ContentNegotiation::XHTML - A Moose Role to apply to
Catalyst views adjusts the response Content-Type header to
application/xhtml+xml content if the browser accepts it.
Catalyst::View::ContentNegotiation::XHTML - Adjusts the
response Content-Type header to application/xhtml+xml
if the browser accepts it.
=head1 SYNOPSIS
Expand All @@ -73,18 +73,24 @@ application/xhtml+xml content if the browser accepts it.
=head1 DESCRIPTION
This is a very simple Role which uses a method modifier to run after the
C<process> method, and sets the response C<Content-Type> to be
This is a simple Role which sets the response C<Content-Type> to be
C<application/xhtml+xml> if the users browser sends an C<Accept> header
indicating that it is willing to process that MIME type.
Changing the C<Content-Type> causes browsers to interpret the page as
XML, meaning that the markup must be well formed.
Changing the C<Content-Type> to C<application/xhtml+xml> causes
browsers to interpret the page as XML, meaning that your markup must
be well formed.
=head1 CAVEATS
This is useful when you're developing your application, as you know that
all pages you view are parsed as XML, so any errors caused by your markup
not being well-formed will show up at once.
Whilst this module is has been tested against most popular browsers including
Internet Explorer, it may cause unexpected results on browsers which do not
properly support the C<application/xhtml+xml> MIME type.
=head1 METHOD MODIFIERS
=head2 after process
Expand Down

0 comments on commit d086c97

Please sign in to comment.