Skip to content

Instantly share code, notes, and snippets.

@amcgregor
Created August 9, 2017 18:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amcgregor/1306389ac8c12fa03d417c2fbc41e36d to your computer and use it in GitHub Desktop.
Save amcgregor/1306389ac8c12fa03d417c2fbc41e36d to your computer and use it in GitHub Desktop.
: def inner
I'm an inner template. My content, here, represents a "level" template. No start or end, just the middle.
: end
:def outer
I'm an outer template. This is my rising edge.
: yield
This is the falling edge.
: end
:def template
:using outer
:use inner
:end
:end
# Or, in XML:
# <outer><inner/></outer> where outer has ::before and ::after.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment