File: ideas.md

package info (click to toggle)
ruby-sinatra-contrib 1.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 572 kB
  • ctags: 392
  • sloc: ruby: 4,722; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
* Extension that does something like this:

      def build(*)
        if settings.memcached?
          use Rack::Cache, :backend => :memcached
          use Rack::Session::Memcached
          # ...
        end
        super
      end

* `sinatra-smart-cache`: update cache header only if arguments are more
  restrictive than curent value, set caching headers that way for most helper
  methods (i.e. `sass` or `send_file`)

* Some verbose logging extension: Log what filters, routes, error handlers,
  templates, and so on is used.

* Form helpers, with forms as first class objects that accepts hashes or
  something, so the form meta data can also be used to expose a JSON API or
  similar, possibly defining routes (like "Sinatra's Hat"), strictly using
  the ActiveModel API.

* Extend `sinatra-content-for` to support Liquid, Radius, Markaby, Nokogiri and
  Builder. At least the first two probably involve patching Tilt.

* Rewrite of `sinatra-compass`?

* Helpers for HTML escaping and such.