view release on metacpan or search on metacpan
lib/Catalyst/Manual/Cookbook.pod view on Meta::CPAN
There are three wrapper plugins around common CPAN cache modules:
Cache::FastMmap, Cache::FileCache, and Cache::Memcached. These can be
used to cache the result of slow operations.
The Catalyst Advent Calendar uses the FileCache plugin to cache the
rendered XHTML version of the source POD document. This is an ideal
application for a cache because the source document changes
infrequently but may be viewed many times.
use Catalyst qw/Cache::FileCache/;
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Catalyst.pm view on Meta::CPAN
my $name = $c->config->{name};
my $logo = $c->uri_for('/static/images/catalyst_logo.png');
my $prefix = Catalyst::Utils::appprefix( ref $c );
$c->response->content_type('text/html; charset=utf-8');
return <<"EOF";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Model/XML/Feed.pm view on Meta::CPAN
=head2 register($uri_of_feed)
Registers a feed with the Model. If C<$uri_of_feed> points to a feed,
the feed is added under its own name. If $C<$uri_of_feed> points to
an HTML or XHTML document containing C<< <link> >> tags pointing to
feeds, all feeds are added by using their URIs as their names.
Returns a list of the names of the feeds that were added.
Warns if the C<$uri_of_feeds> doesn't contain a feed
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/AutoCRUD/templates/extjs2/wrapper/head.tt view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=[% cpac.g.html_charset OR 'utf-8' | html %]" />
<title>[% cpac.g.title %][% ' - Powered by ' IF cpac.g.title %][% cpac.g.version %]</title>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Helper/Model/CRUD.pm view on Meta::CPAN
}
1;
__header_html__
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>[% app_name %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- http://openjsan.org/doc/k/ko/komagata/Widget/Dialog/ -->
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/I18N/Manual.pod view on Meta::CPAN
=item W3C Internationalization (I18N) Activity
L<http://www.w3.org/International/>
=item Authoring Techniques for XHTML & HTML Internationalization: Characters and Encodings 1.0
L<http://www.w3.org/TR/i18n-html-tech-char/>
=item Authoring Techniques for XHTML & HTML Internationalization: Specifying the language of content 1.0
L<http://www.w3.org/TR/i18n-html-tech-lang/>
=back
view all matches for this distribution
view release on metacpan or search on metacpan
example/Upload-Digest/root/upload.tt view on Meta::CPAN
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Catalyst Upload SHA1 Demo</title>
</head>
view all matches for this distribution
view release on metacpan or search on metacpan
example/Upload/root/form.xhtml view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Catalyst Upload Progress Demo</title>
<!-- The lazy way... -->
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst.pm view on Meta::CPAN
my $name = $c->config->{name};
my $logo = $c->uri_for('/static/images/catalyst_logo.png');
my $prefix = Catalyst::Utils::appprefix( ref $c );
$c->response->content_type('text/html; charset=utf-8');
return <<"EOF";
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
view all matches for this distribution
view release on metacpan or search on metacpan
t/more_templates/site-wrapper.tt view on Meta::CPAN
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
t/more_templates/site-wrapper.tt view on Meta::CPAN
</h1>
[%- content %]
<p class="right">
<a href="http://validator.w3.org/check?uri=referer"><img src="/static/images/valid-xhtml10-blue.png" alt="Valid XHTML 1.0" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="/static/images/valid-css-blue.png" alt="Valid CSS" /></a>
<a href="http://feedvalidator.org/check"><img src="/static/images/valid-atom.png" alt="Valid Atom" /></a>
</p>
</div>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/View/ByCode.pm view on Meta::CPAN
# 453 characters without white space
=head1 DESCRIPTION
C<Catalyst::View::ByCode> tries to offer an efficient, fast and robust
solution for generating HTML and XHTML markup using standard perl code
encapsulating all nesting into code blocks.
Instead of typing opening and closing HTML-Tags we simply call a
sub named like the tag we want to generate:
lib/Catalyst/View/ByCode.pm view on Meta::CPAN
doctype html => 4; # HTML 4.01
doctype 'html 4'; # HTML 4.01
doctype 'html 4s'; # HTML 4.01 strict
doctype 'html 4strict'; # HTML 4.01 strict
doctype 'xhtml'; # XHTML 1.0
doctype 'xhtml 1 1'; # XHTML 1.1
=item id
provides a shortcut for defining id names. All examples here will generate the
same markup:
view all matches for this distribution
view release on metacpan or search on metacpan
examples/TestApp/root/src/index.tt2 view on Meta::CPAN
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Catalyst::View::Component::jQuery Demo</title>
[% jquery.link_elements %]
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/View/ContentNegotiation/XHTML.pm view on Meta::CPAN
use MooseX::Types::Structured qw/Tuple/;
use HTTP::Negotiate qw/choose/;
use namespace::clean -except => 'meta';
# Remember to bump $VERSION in View::TT::XHTML also.
our $VERSION = '1.103';
requires 'process';
has variants => (
lib/Catalyst/View/ContentNegotiation/XHTML.pm view on Meta::CPAN
__END__
=head1 NAME
Catalyst::View::ContentNegotiation::XHTML - Adjusts the response Content-Type
header to application/xhtml+xml if the browser accepts it.
=head1 SYNOPSIS
package Catalyst::View::TT;
lib/Catalyst/View/ContentNegotiation/XHTML.pm view on Meta::CPAN
=head1 METHODS
=head2 pragmatic_accept
Some browsers (such as Internet Explorer) have a nasty way of sending Accept
*/* and this claiming to support XHTML just as well as HTML. Saving to a file
on disk or opening with another application does count as accepting, but it
really should have a lower q value then text/html. This sub takes a pragmatic
approach and corrects this mistake by modifying the Accept header before
passing it to content negotiation.
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/TestApp/Controller/Root.pm view on Meta::CPAN
my ( $self, $c ) = @_;
my $data = $self->_generate_test_data();
$c->stash->{'html'} =
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title></title></head><body>'
. $data
. '</body></html>';
my $view = new TestApp::View::Download::HTML;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catalyst/View/Seamstress.pm view on Meta::CPAN
processing phase.
=item config->{use_xhtml}
By default the view will generate html 4 style html by calling as_HTML on the
tree object. If you set this to a true value it will generate XHTML style HTML
by calling as_XML on the tree object. See L<HTML::Element> for details for
these methods.
Also note that this won't apply proper HTML doctypes and what-have-you unless
you have them in your original HTML.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CatalystX/CMS/File.pm view on Meta::CPAN
return $ret;
}
=head2 escape_tt
Returns content() with all TT code wrapped in special XHTML tagset
<code class="tt">
This is to allow for such code to be escaped online or otherwise parsed
with a XML parser.
view all matches for this distribution
view release on metacpan or search on metacpan
t/example/MyApp/root/header.tt view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
view all matches for this distribution
view release on metacpan or search on metacpan
- support serialization of objects with their related objects
0.025 23 Oct 2010
- change field.description.length to .defined to appease TT.
- add Create Related links. Patch from Adam Mackler.
- fix some XHTML compliance bugs (reported by Adam Mackler).
- change 'use Class::C3' to 'use MRO::Compat' in test libs.
- add m2m example to MyDBIC test app
0.024 18 Mar 2010
- check for field.description.length, since localization object will
view all matches for this distribution
view release on metacpan or search on metacpan
root/tt/frame.tt.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>[% title %]</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style>
body {
view all matches for this distribution
view release on metacpan or search on metacpan
t/templates/wrapper.tt view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>[% title %]</title>
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/TestApp/root/templates/wrapper.tt view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
view all matches for this distribution
view release on metacpan or search on metacpan
t/html/ossa.html view on Meta::CPAN
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="" xml:lang="" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Image: </title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<meta content="ABBYY FineReader Engine 11" name="ocr-system"/>
view all matches for this distribution
view release on metacpan or search on metacpan
t/muse.html view on Meta::CPAN
<html><body><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Catmandu/Fix/xml_read.pm view on Meta::CPAN
Only transform to a given depth with option C<simple>
=item path
Parse only given elements (and all of its child elements) and return as array.
For instance C<< path => "p" >> in an XHTML document would return a list of
parsed paragraphs (C<< <p>...</p> >>). This option overrides option C<root>.
=item content
Name of text content when converting to C<simple> form
view all matches for this distribution
view release on metacpan or search on metacpan
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Chart::Graph</title>
<link rev="made" href="mailto:root@gohan24.freebsd.org" />
</head>
view all matches for this distribution
view release on metacpan or search on metacpan
examples/site/01 Linux at Home/10_Snapshots_Save.shtml view on Meta::CPAN
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//ABISOURCE//DTD XHTML plus AWML 2.2//EN" "http://www.abisource.com/2004/xhtml-awml/xhtml-awml.mod">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:awml="http://www.abisource.com/2004/xhtml-awml/">
<head>
<!-- ======================================================= -->
<!-- Created by AbiWord, a free, Open Source wordprocessor. -->
<!-- For more information visit http://www.abisource.com. -->
view all matches for this distribution
view release on metacpan or search on metacpan
<second>2</second>
</filter>
</data>
|;
$doc = q|<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tests the cindy repeat condition</title>
</head>
</body>
</html>
|;
$expected = q|<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Tests the cindy repeat condition</title></head>
<body>
<table>
view all matches for this distribution
view release on metacpan or search on metacpan
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class::GAPI - Generic API, Base class with autoloaded methods, stub objects, cloning etc.</title>
<link rev="made" href="mailto:gp@familiehaase.de" />
</head>
view all matches for this distribution
view release on metacpan or search on metacpan
README.html view on Meta::CPAN
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ClearCase::Argv README</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
view all matches for this distribution
view release on metacpan or search on metacpan
WHOUSES.html view on Meta::CPAN
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>whouses - impact analysis in a clearmake build environment</title>
<link rev="made" href="mailto:dsb@boyski.com" />
</head>
view all matches for this distribution