module YARD::Templates::Engine

def render(options = {})

Returns:
  • (String) - the rendered template

Options Hash: (**options)
  • :template (Symbol) -- the default template
  • :type (Symbol) -- the :object's type.
  • :format (Symbol) -- the default format

Parameters:
  • options (Hash) -- the options hash

Other tags:
    Example: Renders without an object -
    Example: Renders an object with html formatting -
def render(options = {})
  options = set_default_options(options)
  mod = template(options.template, options.type, options.format)
  if options.serializer && options.serialize != false
    with_serializer(options.object, options.serializer) { mod.run(options) }
  else
    mod.run(options)
  end
end