Sha256: 61364fc88c3179f4ecd3f315c184c049f15635f4467663540010686a6af23280

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

<%=
  schemata_template = File.read(File.join(File.dirname(options[:template]), 'schemata.erb'))

  schema['properties'].map do |_, property|
    _, schemata = schema.dereference(property)
    Erubis::Eruby.new(schemata_template).result({
      options:         options,
      schema:          schema,
      schemata:        schemata
    })
  end.join("\n") << "\n"
%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prmd-0.3.1 lib/prmd/templates/schema.erb
prmd-0.3.0 lib/prmd/templates/schema.erb