1
0

handlebars.rb 713 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Handlebars < UrlScraper
  3. self.name = 'Handlebars.js'
  4. self.slug = 'handlebars'
  5. self.type = 'simple'
  6. self.release = '4.0.12'
  7. self.base_url = 'https://handlebarsjs.com/'
  8. self.links = {
  9. home: 'https://handlebarsjs.com/',
  10. code: 'https://github.com/wycats/handlebars.js/'
  11. }
  12. html_filters.push 'handlebars/entries', 'handlebars/clean_html', 'title'
  13. options[:container] = '#contents'
  14. options[:root_title] = 'Handlebars.js'
  15. options[:attribution] = <<-HTML
  16. &copy; 2011&ndash;2017 by Yehuda Katz<br>
  17. Licensed under the MIT License.
  18. HTML
  19. def get_latest_version(opts)
  20. get_npm_version('handlebars', opts)
  21. end
  22. end
  23. end