Sha256: 4ef8630e28067b90b69c7c36112979313d5e39f8240a20305be2a09fb3f9e736
Contents?: true
Size: 460 Bytes
Versions: 18
Compression:
Stored size: 460 Bytes
Contents
--- permalink: "/api/concepts.json" --- {% jbuilder %} # } # (fixes syntax highlight in Sublime) for concept_page in site["concepts"] concept_json_page = concept_page.concept.pages[:json] # JSON keys must be strings json.set! concept_page.termid.to_s do json.term concept_page.data["term"] json.termid concept_page.termid json.set! "uri-html", concept_page.url json.set! "uri-json", concept_json_page&.url end end {% endjbuilder %}
Version data entries
18 entries across 18 versions & 1 rubygems