app/views/crops/_thumbnail.html.haml
%div.crop-sci-name
can be written as .crop-sci-name
since %div
is implicit Open
Open
%div.crop-sci-name
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
HamlLint/ImplicitDiv
Avoid writing %div
when it would otherwise be implicit.
Bad: div
is unnecessary when class/ID is specified
haml
%div.button
Good: div
is required when no class/ID is specified
haml
%div
Good
haml
.button
HAML was designed to be concise, and not embracing this philosophy makes the tool less useful.