ConvertIncludeToRender

Version 0.1.0+

Discourages using the deprecated include tag instead of the render tag in themes.

include works similarly to render, but include allows the code inside of the snippet to access and overwrite the variables within its parent template. This reduces performance and makes theme code harder to read and maintain.

Examples

Below are examples of code that fails and passes this check.

✗ Fail

✓ Pass

Disabling this check

Disabling this check isn't recommended.