wonderpress partial <subcommand>

Work with objected-oriented partial views and accompanying view templates.

Create a Wonderpress “partial” (both a PHP class and an accompanying view template) within the active Wonderpress-friendly theme.

Subcommands

If no subcommand is provided, Wonderpress will default to create.

create
Create a Wonderpress “partial” (both a PHP class and an accompanying view template) within the active Wonderpress-friendly theme.

Options

–dir=<directory>
A relative path to a directory with a valid .wonderpressrc file. Defaults to the current directory.

Examples

# Create a partial in the current Wonderpress installation
$ wonderpress partial create
# Various prompts for configuration...
Wonderpress SUCCESS: Partial was created!