Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automagic attr_readers for ivars you set in Sinatra routes.
This lets us have Sinatra routes like this: get '/badge' do @job = Jobs::Job.first mustache :badge, :layout => false end That work with a badge.mustache like this: {{# job}} <a class="job-link" href="{{url_with_host}}" target="_blank"> <strong class="job-company">{{company}}</strong> is hiring a <strong class="job-title">{{title}}</strong> in <span class="job-location">{{location}}</span> </a> {{/ job}}
- Loading branch information