New in Spress 1.1: debug mode

A debug mode can be activated with Spress 1.1 according with issue #17 from @valllabh. With this mode activated you can dump information about a template variable in your templates. By default debug mode is disabled. To enable add this line in config.yml of your site:

debug: true

To dumps information about a variable simply uses dump function from Twig:

{{ dump(page) }}

Enjoy it!

Posted by Victor Puertas on

Comments

comments powered by Disqus