Skip to content

Instantly share code, notes, and snippets.

@artanikin
Last active July 6, 2021 10:36
Show Gist options
  • Save artanikin/093fa6fefe45f5dfad1a813542b937b6 to your computer and use it in GitHub Desktop.
Save artanikin/093fa6fefe45f5dfad1a813542b937b6 to your computer and use it in GitHub Desktop.
= surround '(', ')' do
%a{ href: "food" } chicken
-# Produces:
-# (<a href='food'>chicken</a>)
= succeed '.' do
%a{ href: "thing" } here
-# Produces:
-# <a href='thing'>here</a>.
= precede '*' do
%span.small Not really
-# Produces:
-# *<span class='small'>Not really</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment