Created
January 28, 2016 21:52
-
-
Save dan-passaro/46c72b061e46761e1730 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
$ cat irc.rb | |
require 'haml' | |
template = <<EOF | |
- if false | |
%p In the if | |
- else | |
%p In the else | |
EOF | |
puts Haml::Engine.new(template).render | |
$ ruby irc.rb | |
<p>In the else</p> | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment