Introducing props_template: A Jbuilder alternative
21-Mar-2024 642
I like Jbuilder. It’s been part of every Rails project every time I run rails new and the first thing I reach for when I want to create JSON responses. It’s as synonymous with JSON as ERB is with HTML.But I wanted a version of Jbuilder that had layouts, didn’t merge hashes, had faster caches, directly used OJ’s StringWriter instead of building a hash, and allowed me to dig into a structure using a key path. Sometimes it makes sense to contribute to an open source project and submit pull requests for the features you want.
Introducing props_template: A Jbuilder alternative #ruby #rubydeveloper #rubyonrails #Introducing #props_template: #Jbuilder #alternative https://rubyonrails.ba/link/introducing-props_template-a-jbuilder-alternative