Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Template Diff

No security coverage Maintenance fixes only 1 sites

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

Drupal 8–11

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.

Activity

Tracked releases
2
Tracked since
Jul 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.3.0 Stable 8–11 Oct 2, 2024
1.2.0 Stable 8–10 Jul 20, 2023