perl-App-Dapper-0.18-alt1.noarch.rpm


Advertisement

Description

perl-App-Dapper - A publishing tool for static websites

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-App-Dapper-0.18-alt1.noarch.rpm
Package name perl-App-Dapper
Package version 0.18
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 87.83 KB
Installed size 87.83 KB
Dapper helps you build static websites. To get you started, you can use the
`dapper init' command to initialize a directory. After running this command,
the following directory structure will be created:
_config.yml
_layout/
index.html
_source/
index.md
In that same directory, you may then build the site using the `dapper build'
command, which will combine the source files and the layout files and place
the results in the output directory (default: `_output'). After you build
the default site, you'll then have the following directory structure:
_config.yml
_layout/
index.html
_source/
index.md
_output/
index.html
To see what your website looks like, run the `dapper serve' command which
will spin up a development webserver and serve the static files located in
the output directory (default: `_output') at http://localhost:8000.
Now, let's walk through each file:
=over 4
=item _config.yml
The configuration file is a YAML file that specifies key configuration
elements for your static website. The default configuration file is as
follows:
---
name : My Site
If you want to use a separate source, layout, or output directory, you may
specify it in this file. For instance:
---
name : My Site
source : _source
layout : _layout
output : _output
All of the configurations in this file are available in layout templates,
based on the Liquid template system. For instance, `name' in the
configuration file may be used in a template as follows:
{{ site.name }}
=item _source/index.md
A sample markdown file is available in the _source directory. Contents:
---
layout: index
title: Welcome
---
Hello world.
There are a few things to note about this file:
=over 4
=item 1. There is a YAML configuration block at the start of the file.
=item 2. The *layout* configuration specifies which layout to use.
=item 3. The `index' layout indicates that `_layout/index.html' should be used.
=item 4. The `title' configuration is the name of the post/page. It is optional.
=item 5. All of the configurations may be used in the corresponding layout file.
<!-- Example use of "name" in a layout file -->
<h1>{{ page.name }}</h1>
=back
=item _layout/index.html
Layout files are processed using the Liquid 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
is available using `{{ page.content }}'.
Definitions specified in the `_config.yml' file can be referenced under the
"site" namespace (e.g. {{ site.name }}. Definitions specified in the YAML
portion of text files can be referenced under the "page" namespace (e.g.
{{ page.title }}.
=item _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
Dapper provides a number of optional command line switches:

Alternatives

Package Version Architecture Repository
perl-App-Dapper - - -

Requires

Name Value
/usr/share/perl5 -
perl(CGI.pm) -
perl(Data/Dumper.pm) -
perl(DateTime.pm) -
perl(DateTime/Format/XSD.pm) -
perl(Encode.pm) -
perl(File/Path.pm) -
perl(File/Spec/Functions.pm) -
perl(HTTP/Server/Brick.pm) -
perl(IO/Dir.pm) -
perl(JSON.pm) -
perl(POSIX.pm) -
perl(PerlIO.pm) -
perl(PerlIO/encoding.pm) -
perl(Template/Alloy.pm) -
perl(Template/Constants.pm) -
perl(Text/MultiMarkdown.pm) -
perl(Unicode/Normalize.pm) -
perl(YAML/Tiny.pm) -
perl(open.pm) -
perl(utf8.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(App/Dapper.pm) = 0.180
perl(App/Dapper/Defaults.pm) -
perl(App/Dapper/Filters.pm) -
perl(App/Dapper/Init.pm) -
perl(App/Dapper/Utils.pm) -
perl-App-Dapper = 0.18-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-App-Dapper-0.18-alt1.noarch.rpm
Source Package perl-App-Dapper-0.18-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-App-Dapper rpm package:
    # sudo apt-get install perl-App-Dapper

Files

Path
/usr/share/doc/perl-App-Dapper-0.18/Changes
/usr/share/doc/perl-App-Dapper-0.18/README.md
/usr/share/perl5/App/Dapper.pm
/usr/share/perl5/App/Dapper/Defaults.pm
/usr/share/perl5/App/Dapper/Filters.pm
/usr/share/perl5/App/Dapper/Init.pm
/usr/share/perl5/App/Dapper/Utils.pm

See Also

Package Description
perl-App-Dapper-scripts-0.18-alt1.noarch.rpm App-Dapper scripts
perl-App-DataPackUtils-0.05-alt1.noarch.rpm Collection of CLI utilities related to Module::DataPack
perl-App-DataPackUtils-scripts-0.05-alt1.noarch.rpm App-DataPackUtils scripts
perl-App-DataSectionSeekableUtils-0.02-alt1.noarch.rpm Collection of CLI utilities related to Data::Section::Seekable
perl-App-DataSectionSeekableUtils-scripts-0.02-alt1.noarch.rpm App-DataSectionSeekableUtils scripts
perl-App-DateUtils-0.121-alt1.noarch.rpm An assortment of date-/time-related CLI utilities
perl-App-DateUtils-scripts-0.121-alt1.noarch.rpm App-DateUtils scripts
perl-App-Dependencio-0.09-alt1.noarch.rpm Simple utility to find perl modules dependencies recursively in your project
perl-App-Dependencio-scripts-0.09-alt1.noarch.rpm App-Dependencio scripts
perl-App-Deps-Verify-0.8.3-alt1.noarch.rpm An appoand API to verify the presence of dependencies (Perl 5 modules, python3 modules, executables
perl-App-Depst-1.05-alt1.noarch.rpm Deployment State Manager
perl-App-Depst-scripts-1.05-alt1.noarch.rpm App-Depst scripts
perl-App-Dest-1.25-alt1.noarch.rpm Deployment State Manager
perl-App-Dest-scripts-1.25-alt1.noarch.rpm App-Dest scripts
perl-App-Devbot-0.001004-alt1.noarch.rpm IRC bot which helps development
Advertisement
Advertisement