Skip to content
>
ls
Leonid Svyatov
[
h
]ome
[
p
]rojects
[
b
]log
[
c
]v
OPEN TO SENIOR / LEAD ROLES
[≡]
[
h
]ome
[
p
]rojects
[
b
]log
[
c
]v
██████╗ ██╗ ██████╗ ██████╗
██╔══██╗██║ ██╔═══██╗██╔════╝
██████╔╝██║ ██║ ██║██║ ███╗
██╔══██╗██║ ██║ ██║██║ ██║
██████╔╝███████╗╚██████╔╝╚██████╔╝
╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝
$ tail -f ~/blog | grep 2024
Posts filed under 2024.
2024-03-03
·
2 min read
clsx for Rails views
Build conditional CSS class strings in Rails views with clsx-rails, using strings, arrays, hashes, deduplication, and the shorter cn helper.
# rails · ruby · css · opensource
Hotkeys
×
Enable single-key shortcuts
h
home
p
projects
b
blog
c
cv
-
up one level
,
prev
.
next
j
next item
k
prev item
[
prev heading
]
next heading
u
top
d
bottom
y
copy url
g
github
l
linkedin
m
email
?
this list
esc
close