Created
June 1, 2015 07:58
-
-
Save artibella/24db96efdbbd260700f5 to your computer and use it in GitHub Desktop.
Middleman code snippet partial for Haml
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
- code ||= '' | |
%pre | |
%code.language-markup | |
= preserve do | |
:escaped | |
#{code} |
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
- demo_src = capture_haml do | |
.demo | |
This is a demo | |
= partial "snippet", :locals => { :code => demo_src } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment