Sha256: ae7f1a75d527f8e4d9365df9579d945a209dfc42ca151ba016ae707025a20a43

Contents?: true

Size: 369 Bytes

Versions: 42

Compression:

Stored size: 369 Bytes

Contents

# 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.
module Helpers
  def self.capture_output(*args, &block)
    Proc.new { block.call(*args) }
  end
end

Version data entries

42 entries across 21 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.9 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.9.pre.3 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.9.pre.3 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.9.pre.2 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.9.pre.2 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.9.pre.1 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.9.pre.1 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.8 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.8 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.7 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.7 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.7.pre.9 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.7.pre.9 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.7.pre.8 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.7.pre.8 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.7.pre.7 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.7.pre.7 lib/resources/backends/slim/dzslides/helpers.rb
hyla-1.0.7.pre.6 lib/resources/backends/slim/docbook45/helpers.rb
hyla-1.0.7.pre.6 lib/resources/backends/slim/dzslides/helpers.rb