1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
Commit graph

32 commits

Author SHA1 Message Date
Konstantin Haase
314a98fc8e Remove uneccessary # from READMEs. 2011-01-11 09:15:31 +01:00
Konstantin Haase
d75f12cb43 Merge branch 'filter-conditions' 2010-12-14 22:49:18 +01:00
Alexander Klink
8c8cfedd29 Some spellchecking in README.de.rdoc
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-12-03 00:33:31 +01:00
Andrey Samsonov
796d62a487 README.* fixed typos
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-11-11 07:59:14 -06:00
Andrew Hampton
e6887fe430 Fix typo in middleware example.
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-11-07 09:49:23 +01:00
Konstantin Haase
ca7fbe5472 Add documentation for Slim templates. 2010-11-05 13:59:49 +01:00
Konstantin Haase
2ef4aa4ffb Fix typo in German README. 2010-11-05 13:57:58 +01:00
Konstantin Haase
7a9101a99d Like routes, filters now also take conditions:
before :agent => /Songbird/ do
    # ...
  end

  after '/blog/*', :host_name => 'example.com' do
    # ...
  end

Test and documentation (English and German) included.
2010-11-03 13:51:52 +01:00
Konstantin Haase
4595a1e11c Add Scopes, Middleware and Request sections to German README. 2010-10-13 18:59:58 +02:00
Konstantin Haase
c4b9fdc440 Yet another markup fix for the README. 2010-10-12 17:31:59 +02:00
Konstantin Haase
dd81da11bb Add nokogiri helper method. Tilt supports Nokogiri for quite some time now, but it was not as easy to use as builder, and not documented. Tests and documentation included. 2010-10-10 13:53:43 +02:00
Konstantin Haase
ade0b3b008 Merge branch 'smart-templates' 2010-10-09 17:20:20 +02:00
burningTyger
64b45ec26f Typos fixed. Thank you for translating this document in the first place (khaase?).
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
2010-10-09 15:23:45 +02:00
Konstantin Haase
1d676f41f8 Sets default content type according to template engine used instead of just text/html.
It does so by including a Mixin into the the returned string offering a content_type method. Therefore all of the following examples produce the expected results:

    # text/html
    get('/') do
      haml :index
    end

    # text/css
    get('/') do
      sass :index
    end

    # text/css
    get('/') do
      haml :index
      sass :index
    end

    # text/html
    get('/') do
      haml '= sass :index'
    end

It also allows setting the default content type for a template engine:

    set :builder, :content_type => :html

Tests and README adjustments (all languages) included.
2010-09-27 13:25:10 +02:00
Konstantin Haase
f979cb8825 typo + grammar in German README 2010-09-25 23:57:23 +02:00
Konstantin Haase
1abac3217f Add note to all README translations saying: 'Important Note: This document is just a translation of the English version and might not be up to date.'
French translation by Gabriel Andretta (ohhgabriel)
Spanish translation by michelc
Japanese translation by Kiko Uehara (kiko)

Japanese translation also includes 'Please refer to original English document for the most up to date information.'
More translations and discussion: http://gist.github.com/589498
2010-09-22 07:56:17 +02:00
Konstantin Haase
130335bc4b Fix grammar in German README. 2010-09-22 07:43:28 +02:00
Konstantin Haase
a852f97f52 Add content_type line to German CoffeeScript example. 2010-09-12 23:11:22 +02:00
Konstantin Haase
f58d015b6d Add coffee helper method. Tilt supports CoffeeScript again, but it was not as easy to use as sass or scss, and not documented. Tests and documentation (English and German) included. 2010-09-12 23:09:10 +02:00
Konstantin Haase
8ce74b3ad2 Add markaby helper method. Tilt supports Markaby for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 17:00:33 +02:00
Konstantin Haase
7cb94f2d3f Add radius helper method. Tilt supports radius for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 15:14:45 +02:00
Konstantin Haase
c248dbac9d Add rdoc helper method. Tilt supports RDoc for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-12 13:59:00 +02:00
Konstantin Haase
b464e024a8 Add textile helper method. Tilt supports textile for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-11 14:53:04 +02:00
Konstantin Haase
970169b1fb Add markdown helper method. Tilt supports markdown for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-11 14:35:29 +02:00
Konstantin Haase
4db91f3c3c German README: Adjust Template section headings ("XYZ Template" -> "XYZ-Template"). 2010-09-11 13:57:29 +02:00
Konstantin Haase
28a3a350bb Add liquid helper method. Tilt supports liquid for quite some time now, but it was not as easy to use as haml or erb, and not documented. Tests and documentation (English and German) included. 2010-09-11 13:54:01 +02:00
Konstantin Haase
b7b43f70b3 German README: Improve language and bring up to speed with English version. 2010-09-10 16:34:41 +02:00
Konstantin Haase
8465d492aa Avoid require "rubygems" and sudo in README. 2010-09-07 10:23:28 +02:00
Simon Rozet
f513df6bd4 fix whitespaces 2010-07-01 07:32:20 +02:00
Simon Rozet
60ac44901f lighthouse => github issue 2010-07-01 07:32:11 +02:00
Doug Ireton
edf4d4356e In German README doc, fix links to HAML and SASS Options pages. 2010-05-26 11:24:31 -07:00
Bernhard Essl
11e1f8a971 Add German translation of the README 2010-04-02 12:44:45 -07:00