Skip to main content
  1. Snippits & Exemplars/
  2. WolfspyreLabs Exemplars/
  3. WolfspyreLabs ShortBarks/

WPLDebug

For those days when everything that could go wrong….

These shortcodes pretty-print various page-scoped objects..

Hopefully they make debugging a thing a lil easier.


wpldebug-page #

Function:
emits the entire .Page object.

Usage:
{{< wpldebug-page >}}


wpldebug-pageparams #

Function:
display the page parameters
Usage:
{{< wpldebug-pageparams >}}

wpldebug-pageresources #

Function:
display the page’s resources
Usage:
{{< wpldebug-pageresources >}}

wpldebug-siteauthor #

Function:
display the site author
Usage:
{{< wpldebug-siteauthor >}}

wpldebug-siteconfig #

Function:
display the site config
Usage:
{{< wpldebug-siteconfig >}}

wpldebug-sitedata #

Function:
display the data object. Takes an optional keyname. will constrain matches to the keyname.
Usage:
{{< wpldebug-sitedata >}}
Constrained Output Usage:
{{< wpldebug-sitedata authors >}}

wpldebug-siteparams #

Function:
display the site params. Takes an optional keyname. will constrain matches to the keyname.
Usage:
{{< wpldebug-siteparams >}}
Constrained Output Usage:
{{< wpldebug-siteparams article >}}

wpldebug-userconstructhandles #

Function:
display the userconstructhandles
Usage:
{{< wpldebug-userconstructhandles >}}

wpldebug #

Function:
display everything
Usage:
{{< wpldebug >}}