This module helps developers understand theme overrides by showing the differences between template files from different themes or modules. It can compare a template in the active theme against another theme or module, or against its base theme.
When developing a theme, there is often a need to understand why a theme needed to override the template provided by the base theme. Displaying the diff between the two templates would help with this.
This module provides a command that accepts a template name and will display the diff between two specified themes or modules. If no theme is specified it defaults to the active theme.
Examples:
Compare the the views-view template in my_theme theme vs your_theme.
drush template_diff:show views-view my_theme your_theme
Compare the the views-view template in my_theme theme vs your_module.
drush template_diff:show views-view my_theme your_module
Compare the the views-view template in the active theme vs its base theme.
drush template_diff:show views-view
Ask your assistant about Template Diff
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.