I want to use asset rev in my template, but only if plugin is installed and enabled:
{% if craft.app.plugins.getPlugin('assetrev') is not null and craft.app.plugins.getPlugin('assetrev').isInstalled %}
{% set fileName = rev(file) %}
{% else %}
{% set fileName = file %}
{% endif %}
Hovewer when i disable plugin, mere existence of rev
function in my template, still causes error.