class Inkcite::Renderer::Carousel::Image

Public Instance Methods

render(tag, opt, ctx) click to toggle source
# File lib/inkcite/renderer/carousel.rb, line 19
def render tag, opt, ctx

  # Get a reference to the tag stack that contains these frames
  tag_stack = ctx.tag_stack :carousel

  # Get the opts held by the parent carousel.
  carousel_opt = tag_stack.opts

  #opt[:_src] = image_url(opt[:src], opt, ctx, false, false)

  # Initialize the frames array
  carousel_opt[:frames] << opt

  nil
end