Skip to content

Instantly share code, notes, and snippets.

@mariohernandez
Created March 21, 2024 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariohernandez/9c260552610bf35211384d4db7fecefb to your computer and use it in GitHub Desktop.
Save mariohernandez/9c260552610bf35211384d4db7fecefb to your computer and use it in GitHub Desktop.
Component wrapper with modifier and attributes
<article class="card{{ modifier ? ' ' ~ modifier }}{{- attributes ? ' ' ~ attributes.class -}}"
{{- attributes ? attributes|without(class) -}}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment