Pagd

Template. Context. Page.

create – create a new source layout

Module contents

class pagd.commands.create.Create(pa, *args, **kwargs)[source]

Bases: pluggdapps.plugin.Singleton

Sub-command plugin to create a new layout at the given sitepath. For example,

pagd -l 'pagd.myblog' create

uses pagd.myblog plugin to create a source layout.

handle(args)[source]

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

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

subparser(parser, subparsers)[source]

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

  • -g switch can be used to supply a configuration file for layout.
  • -f switch will overwrite if sitepath already contains a layout.