Created
August 9, 2017 18:44
-
-
Save amcgregor/1306389ac8c12fa03d417c2fbc41e36d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: 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