Class: JekyllBookshop::BrowserTag

Inherits:
Liquid::Tag
  • Object
show all
Defined in:
lib/jekyll-bookshop/tags/browser-tag.rb

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, markup, tokens) ⇒ BrowserTag

Returns a new instance of BrowserTag.



5
6
7
8
# File 'lib/jekyll-bookshop/tags/browser-tag.rb', line 5

def initialize(tag_name, markup, tokens)
  super
  @host = markup.strip
end

Instance Method Details

#render(context) ⇒ Object



10
11
12
13
14
15
# File 'lib/jekyll-bookshop/tags/browser-tag.rb', line 10

def render(context)
  STDERR.puts "The {% bookshop_browser #{@host} %} tag has been replaced in Bookshop 3.0"
  STDERR.puts "Replace this tag with {% bookshop_component_browser %}"
  STDERR.puts "Note: The port argument is no longer needed, nor are any environment checks"
  exit 1
end