Last active
March 30, 2017 13:22
-
-
Save dminuoso/fa670dde58d6fa1e4d538dc670260870 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 capture_proc | |
proc { |*args| capture_haml { yield *args } } | |
end |
This file contains hidden or 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
- renderTable = capture_proc do |data| | |
%table.table | |
%thead | |
%tr | |
.... | |
.panel.panel-default | |
= renderTable(@data1) | |
.panel.panel-default | |
= renderTable(@data2) | |
.panel.panel-default | |
= renderTable(@data3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment