Sha256: 0748187c4d04b6bcd9c7003af39311e13ce4446c5a83da2b08dcdca6e0f615d7
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
<%- if options[:doc][:toc] -%> <%= Prmd::Template::load('table_of_contents.erb', options[:template]).result({ options: options, schema: schema }) %> <%- end -%> <%= schemata_template = Prmd::Template::load('schemata.md.erb', options[:template]) schema['properties'].keys.sort.map do |key| resource, property = key, schema['properties'][key] begin _, schemata = schema.dereference(property) schemata_template.result({ options: options, resource: resource, schema: schema, schemata: schemata }) rescue => e $stdout.puts("Error in resource: #{resource}") raise e end end.join("\n") %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prmd-0.14.0 | lib/prmd/templates/schema.erb |