Sha256: 1638f55995650ab15dd74c80a1cd15ab48b92e3466c14dd38418e5a7cc63449d

Contents?: true

Size: 728 Bytes

Versions: 20

Compression:

Stored size: 728 Bytes

Contents

# Standard/RailsRenderLiteral

tldr; `render` MUST be passed a string literal template path.

* When used in conjunction with `Standard/RailsViewRenderPathsExist`, linters can ensure the target file exists on disk and would not crash rendering a missing template.
* Makes it easier for humans to trace callers of a template. Simply search for the full path of the target template to find **all** call sites.
* This same call site tracing enables automated unused template checking. If no callers are found, the template can be safely removed.
* Enables render precompilation and inlining optimizations. Target templates can be compiled and inlined on boot time rather than deferring to first render to lazily compile templates.

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rubocop-standard-4.2.0 guides/rails-render-literal.md
rubocop-standard-4.1.0 guides/rails-render-literal.md
rubocop-standard-4.0.4 guides/rails-render-literal.md
rubocop-standard-4.0.3 guides/rails-render-literal.md
rubocop-standard-4.0.2 guides/rails-render-literal.md
rubocop-standard-4.0.1 guides/rails-render-literal.md
rubocop-standard-4.0.0 guides/rails-render-literal.md
rubocop-standard-3.2.0 guides/rails-render-literal.md
rubocop-standard-3.1.2 guides/rails-render-literal.md
rubocop-standard-3.1.1 guides/rails-render-literal.md
rubocop-standard-3.1.0 guides/rails-render-literal.md
rubocop-standard-3.0.0 guides/rails-render-literal.md
rubocop-standard-2.1.1 guides/rails-render-literal.md
rubocop-standard-2.1.0 guides/rails-render-literal.md
rubocop-standard-2.0.1 guides/rails-render-literal.md
rubocop-standard-2.0 guides/rails-render-literal.md
rubocop-standard-1.15.1 guides/rails-render-literal.md
rubocop-standard-1.15.0 guides/rails-render-literal.md
rubocop-standard-1.14.0 guides/rails-render-literal.md
rubocop-standard-1.12.0 guides/rails-render-literal.md