Pagd

Template. Context. Page.

generate – Generate a static site form source layout

Module contents

class pagd.commands.generate.Gen(pa, *args, **kwargs)[source]

Bases: pluggdapps.plugin.Singleton

Sub-command plugin to generate static web site at the given target directory. If a target directory is not specified, it uses layout’s default target directory. For more information refer to corresponding layout plugin’s documentation.

handle(args)[source]

pluggdapps.interfaces.ICommand.handle() interface method.

Instantiate a layout plugin and apply generate() method on the instantiated plugin. sitepath and siteconfig references willbe passed as settings dictionary.

subparser(parser, subparsers)[source]

pluggdapps.interfaces.ICommand.subparser() interface method.