Class: Gollum::Macro::Audio

Inherits:
Gollum::Macro show all
Defined in:
lib/gollum-lib/macro/audio.rb

Instance Method Summary collapse

Methods inherited from Gollum::Macro

#initialize, instance

Constructor Details

This class inherits a constructor from Gollum::Macro

Instance Method Details

#render(fname) ⇒ Object



4
5
6
# File 'lib/gollum-lib/macro/audio.rb', line 4

def render (fname)
  "<audio width=\"100%\" height=\"100%\" src=\"#{CGI::escapeHTML(fname)}\" controls=\"true\"> HTML5 audio is not supported on this Browser.</audio>"
end