Pagd

Template. Context. Page.

newpage – Create a new page under source layout

Module contents

class pagd.commands.newpage.NewPage(pa, *args, **kwargs)[source]

Bases: pluggdapps.plugin.Singleton

Sub-command plugin to generate a new content page under layout-sitepath.

handle(args)[source]

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

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

subparser(parser, subparsers)[source]

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