lib/graphql-docs/helpers.rb in graphql-docs-0.2.2 vs lib/graphql-docs/helpers.rb in graphql-docs-0.3.0
- old
+ new
@@ -10,10 +10,10 @@
slug.downcase
end
def include(filename, opts = {})
template = fetch_include(filename)
- opts = { base_url: @options[:base_url] }.merge(opts)
+ opts = { base_url: @options[:base_url], classes: @options[:classes] }.merge(opts)
template.result(OpenStruct.new(opts.merge(helper_methods)).instance_eval { binding })
end
def markdown(string)
GitHub::Markdown.render(string || 'n/a')