App-PFT
view release on metacpan or search on metacpan
bin/pft-make view on Meta::CPAN
=head2 The output website
The output encoding depends on a configuration key in C<pft.yaml> (see
L<pft-init(1)>). The template is expected to define the encoding in a proper
way, that is by making use of the C<[% site.encoding %]> key in the HTML
header:
<head>
<meta http-equiv="content-type"
content="text/html; charset=[% site.encoding %]">
...
</head>
The result of a build is a collection of HTML pages. Since C<a href> links
are relative, the generated site will work fine even if moved or copied
remotely on another system (see L<pft-pub(1)>).
=head2 Injected data
The B<pft make> command will populate the C<ROOT/build> directory.
share/templates/default.html view on Meta::CPAN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=[% site.encoding %]">
<title>[% site.title %] :: [% content.title %]</title>
<style type="text/css">
html {
margin : 0;
padding : 0;
font-family : sans-serif;
}
share/templates/dump_page.html view on Meta::CPAN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="content-type" content="text/html; charset=[% site.encoding %]">
<title>[% site.title %] :: [% content.title %] dump page</title>
</head>
<ul>
<li><code>site.title</code>: [% site.title %]</li>
<li><code>site.root</code>: [% site.root %]</li>
<li><code>content</code><ul>
<li><code>content.title</code>: [% content.title %]</li>
<li><code>content.html</code>: (see bottom of this page)
<li><code>content.date</code>:
share/templates/minimal.html view on Meta::CPAN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=[% site.encoding %]">
<title>[% site.title %]: [% content.title %]</title>
<style type="text/css">
[%
IF site.theme == 'dark'
color.bg = '#292727'
color.fg = '#e9e9e9'
color.h = '#bdcce6'
color.prebg = '#4a4a4a'
ELSE
color.bg = 'white'
share/templates/terminal.html view on Meta::CPAN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=[% site.encoding %]">
<title>[% site.title %]: [% content.title %]</title>
<style type="text/css">
[%
IF site.theme == "dark"
color.bg = "#0A0B11"
color.bg_alt = "#0f111A"
color.border = "#001c19"
color.fg = "#D3D3D3"
color.link = "#009687"
color.link_hov = "#00BAA8"
( run in 0.265 second using v1.01-cache-2.11-cpan-4d50c553e7e )