@ -18,7 +18,7 @@ module AsciicastsHelper
def embed_script(asciicast)
src = asciicast_url(asciicast, format: :js)
id = "asciicast-#{asciicast.to_param}"
%(<script type="text/javascript" src="#{src}" id="#{id}" async></script>).html_safe
%(<script type="text/javascript" src="#{src}" id="#{id}" async></script>)
end
def embed_html_link(asciicast)
@ -5,12 +5,12 @@ p
Some pilots get picked and become television programs. Some don't, become
nothing. She starred in one of the ones that became nothing.
= embed_script @asciicast
= embed_script(@asciicast).html_safe
p
' And now again. There should be an embedded player below this paragraph.
' This is at the bottom of the page, below all players.