class Jekyll::StripeButtonTag
Public Class Methods
new(tag_name, text, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll-stripe.rb, line 14 def initialize(tag_name, text, tokens) super @id = text.strip end
Public Instance Methods
render(context)
click to toggle source
# File lib/jekyll-stripe.rb, line 19 def render(context) style = "background-color:#6772E5;color:#FFF;padding:8px 12px;border:0;border-radius:4px;font-size:1em" "<button style=\"#{style}\" type=\"button\" role=\"link\" data-buybutton-id=\"#{@id}\">Buy now</button> " + "<span class=\"buybutton-error\"></span>" end