Dindent
Component ID
2226215
Component name
Dindent
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
3834
Component created
Component changed
Component body
The Dindent module is dedicated to developers who suffer from OCD and cannot bare reading template engine produced output.
Using the Dindent parser written by Gajus Kuizinas, this module allows you to beautify your Drupal HTML without lifting a finger.
Dindent was written and is maintained by Stuart Clark (deciphered).
- http://stuar.tc/lark
- http://twitter.com/Decipher
Â
Before / After
Â
Installation
-
Download the Parser.php file from Github:
https://raw.githubusercontent.com/Decipher/dindent/master/src/Parser.php - Place the Parser.php file into a dindent directory in your libraries directory so you have something like sites/all/libraries/dindent/Parser.php.
-
Install as usual:
http://drupal.org/documentation/install/modules-themes/modules-7
Â
Usage
By default this module will only process cacheable pages, however you can enable processing of non-cacheable pages at admin/config/development/dindent.
The cacheability of a page can be effected by various factors; if you are unable to see the effects of the modules, check some of these following criteria:
-
'Cache pages for anonymous users' needs to be enabled, it can be found at:
/admin/config/development/performance - No session can be present for the logged in user; Status messages set by drupal_set_message() are stored in a users session.
- Some modules and/or filters prevent a page from being cacheable.
Â

