-
-
Save linojon/a64ea0e17059c4e96bc6 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
- helper | |
def iff(obj, &block) | |
with_output_buffer(&block) if obj.present? | |
end | |
- haml | |
= iff mountain.notes do |it| | |
%div | |
= markdown it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment