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

The following examples contain code snippets that either fail or pass this check.

✗ Fail

✓ Pass

Disabling this check

Disabling this check isn't recommended.