lib/keynote/inline.rb in keynote-0.2.0 vs lib/keynote/inline.rb in keynote-0.2.1

- old
+ new

@@ -1,7 +1,8 @@ # encoding: UTF-8 +require "action_view" require "thread" module Keynote # The `Inline` mixin lets you write inline templates as comments inside the # body of a presenter method. You can use any template language supported by @@ -87,10 +88,9 @@ # # h1= full_name # # h3= user.most_recent_status # end # end def inline(*formats) - require "action_view" require "action_view/context" Array(formats).each do |format| define_method format do |locals = {}| Renderer.new(self, locals, caller(1)[0], format).render