small snippet to let sinatra work with unicode endpoints:

```
require 'cgi'
require 'mustermann/pattern'
class UnicodePattern < Mustermann::Pattern
register :unicode
def === string
CGI.unescape(string) == @string
end

end

set mustermann_opts: {type: :unicode}
```
#SinatraRb #ruby

OMFG can we just talk about how awesome #ruby #sinatrarb and #active_record is! I simply cannot get why Ruby is not a more popular #programming language

Is there a way to only include certain Helper modules depending on the Sinatra view or view directory? Yes I know that Hanami does this, but is there a way to provide similar functionality in an existing Sinatra app?

#sinatra #sinatrarb

@postmodern If you stub something out, I'll help. I use #SinatraRb often enough for #API wrappers that this would help me too.

It seems that @sdogruyol did another performance and memory #benchmark where he compared @ruby's Sinatra (#Ruby 3.4.0) against @CrystalLanguage's @crystalkemal.

However, I don't think it's entirely fair though. πŸ˜‰

You can find the repository over here:

https://github.com/sdogruyol/kemal-github-api

#rubylang #crystallang #crystallanguage #ruby #crystal #SinatraRb #sinatra

GitHub - sdogruyol/kemal-github-api: Github API routes benchmark for Kemal

Github API routes benchmark for Kemal. Contribute to sdogruyol/kemal-github-api development by creating an account on GitHub.

GitHub