Sha256: fed72b02ccccff026a193a2e441afa87ef8c0d0cd35a6df71acbec060cdcb242
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
require 'swaggerui_local/version' module SwaggeruiLocal class << self def render_html(path_to_json = '') template_path = File.join( File.dirname(__FILE__), 'swaggerui_local/html.html' ) File .open(template_path, 'r') .read .gsub('<%json_url_here%>', path_to_json) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swaggerui_local-0.0.2 | lib/swaggerui_local.rb |
swaggerui_local-0.0.1 | lib/swaggerui_local.rb |