ConvertIncludeToRender
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.
The following examples contain code snippets that either fail or pass this check.
Disabling this check
Anchor link to section titled "Disabling this check"Disabling this check isn't recommended.