class ArticleSyncEmbed

Public Class Methods

new(tagName, content, tokens) click to toggle source
Calls superclass method
# File lib/jekyll-artisync.rb, line 7
def initialize(tagName, content, tokens)
  super
  @content = content
end

Public Instance Methods

render(context) click to toggle source
# File lib/jekyll-artisync.rb, line 12
def render(context)
  url = Liquid::Template.parse(@content).render(context).strip
  uri = URI(url)
  syncer = SyncerFactory.get_syncer(uri)
  return syncer.gen_html
end