2017 © Pedro Peláez
 

streams-addon twigtools-plugin

Useful development debugging tools for Twig on PyroCMS 3.x

image

evoluted/twigtools-plugin

Useful development debugging tools for Twig on PyroCMS 3.x

  • Friday, July 20, 2018
  • by evoluted
  • Repository
  • 5 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TwigTools

Twigtools is a PyroCMS plugin, providing useful tools for development and debugging with twig., (*1)

Initially this provides the following functions inside twig templates:, (*2)

  • dd Dumps an item and kills the rest of the page.
  • debug Dumps an item and continues execution
  • debug Debugs an item to Debugbar under the Messages tab

Installing

You can install this plugin into your existing PyroCMS 3.x installation by requiring it inside your composer file:, (*3)

"require-dev": {
    "evoluted/twigtools-plugin": "~1.0",`
}

Or by running the command line composer install command:, (*4)

composer require evoluted/twigtools-plugin, (*5)

Once installed you will not have to perform any additional actions to start using this plugin., (*6)

Usage

dd

dd(yourVariable), (*7)

Uses Laravels dump method, and stops execution., (*8)

dump

dump(yourVariable), (*9)

Uses Laravels dump method, but continues rendering the rest of the page., (*10)

debug

debug(yourVariable), (*11)

Debugs a variable to Laravel Debugbar (if it is installed), (*12)

Future Ideas

  • Manipulation of objects and arrays (E.g resorting, inserting within arrays, etc)
  • Debug to log files from within twig

Release History

  • 1.0.0
    • Initial release, containing dd(), debug(), debug()

Contributing

  1. Fork it (https://github.com/EvolutedNewMedia/twigtools-plugin/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

The Versions

20/07 2018

dev-master

9999999-dev

Useful development debugging tools for Twig on PyroCMS 3.x

  Sources   Download

MIT

by Avatar evoluted
by Rick Mills

twig pyrocms pyro laravel cms php cms

20/07 2018

1.0.0

1.0.0.0

Useful development debugging tools for Twig on PyroCMS 3.x

  Sources   Download

MIT

by Avatar evoluted
by Rick Mills

twig pyrocms pyro laravel cms php cms