This project is not covered by Drupal’s security advisory policy.

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

Supporting organizations: 

Project information

Releases