App-Dapper
view release on metacpan or search on metacpan
**_layout/index.html**
Layout files are processed using the TT3 mini-language from the Template::Alloy
template system. The initial layout file that is given after you run the `dapper
init` command, is this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[% page.title %]</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
[% page.content %]
</body>
</html>
The main content of the text file that is being rendered with this template
**_output/index.html**
The output file that is created is a mix of the input file and the layout
that is specified by the input file. For the default site, the following
output file is created:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Hello world.</p>
</body>
</html>
# Configuration
bottom: 0;
left: 0;
}
</style>
</head>
<body>
<div id="editor">[% dump site | json(1)%]</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js"
type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/text_mate");
editor.getSession().setMode("ace/mode/json");
editor.setReadOnly(true);
window.setTimeout(function() {
editor.getSession().foldAll(2,editor.session.getLength());
}, 100);
</script>
</body>
=item B<_layout/index.html>
Layout files are processed using the Liquid template system. The initial layout
file that is given after you run the C<dapper init> command, is this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{{ page.title }}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
{{ page.content }}
</body>
</html>
The main content of the text file that is being rendered with this template
=item B<_output/index.html>
The output file that is created is a mix of the input file and the layout that
is specified by the input file. For the default site, the following output
file is created:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Hello world.</p>
</body>
</html>
=back
lib/App/Dapper.pm view on Meta::CPAN
=item B<_layout/index.html>
Layout files are processed using the Liquid template system. The initial layout
file that is given after you run the C<dapper init> command, is this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{{ page.title }}</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
{{ page.content }}
</body>
</html>
The main content of the text file that is being rendered with this template
lib/App/Dapper.pm view on Meta::CPAN
=item B<_output/index.html>
The output file that is created is a mix of the input file and the layout that
is specified by the input file. For the default site, the following output
file is created:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Hello world.</p>
</body>
</html>
=back
lib/App/Dapper/Init.pm view on Meta::CPAN
Hello world.
SOURCE_INDEX_CONTENT
my $templates_index_name = "index.html";
my $templates_index_content = <<'TEMPLATES_INDEX_CONTENT';
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>[% page.title %]</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
[% page.content %]
</body>
</html>
TEMPLATES_INDEX_CONTENT
( run in 0.270 second using v1.01-cache-2.11-cpan-4d50c553e7e )