Class: CS50::NextTag

Inherits:
Tag
  • Object
show all
Defined in:
lib/jekyll-theme-cs50.rb

Instance Method Summary collapse

Methods included from Mixins

#initialize

Instance Method Details

#render(context) ⇒ Object



280
281
282
283
284
# File 'lib/jekyll-theme-cs50.rb', line 280

def render(context)
  super
  button = CS50::sanitize(CS50::convert((@args[0]) ? CGI.escapeHTML(@args[0]) : "Next"))
  "<button class='btn btn-dark btn-sm' data-next type='button'>#{button}</button>"
end