Module: Helpers
- Defined in:
- lib/resources/backends/slim/html5/helpers.rb,
lib/resources/backends/slim/dzslides/helpers.rb,
lib/resources/backends/slim/revealjs/helpers.rb,
lib/resources/backends/slim/docbook45/helpers.rb
Overview
Add custom functions to this module that you want to use in your Slim templates. Within the template you must namespace the function (unless someone can show me how to include them in the evaluation context). You can change the namespace to whatever you want.
Class Method Summary collapse
Class Method Details
.capture_output(*args, &block) ⇒ Object
6 7 8 |
# File 'lib/resources/backends/slim/dzslides/helpers.rb', line 6 def self.capture_output(*args, &block) Proc.new { block.call(*args) } end |