mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Uneccessary content_type lines removed from Spanish and French README.
This commit is contained in:
parent
dd81da11bb
commit
a1052fe960
2 changed files with 0 additions and 16 deletions
|
@ -227,7 +227,6 @@ La gem/librería builder es necesaria para renderizar plantillas builder:
|
||||||
require 'builder'
|
require 'builder'
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
content_type 'application/xml', :charset => 'utf-8'
|
|
||||||
builder :index
|
builder :index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -241,7 +240,6 @@ La gem/librería nokogiri es necesaria para renderizar plantillas nokogiri:
|
||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
content_type 'application/xml', :charset => 'utf-8'
|
|
||||||
nokogiri :index
|
nokogiri :index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -255,7 +253,6 @@ La gem/librería sass es necesaria para renderizar plantillas Sass:
|
||||||
require 'sass'
|
require 'sass'
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
sass :stylesheet
|
sass :stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -269,7 +266,6 @@ y reemplazadas individualmente.
|
||||||
set :sass, :style => :compact # el estilo por defecto de Sass es :nested
|
set :sass, :style => :compact # el estilo por defecto de Sass es :nested
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
sass :stylesheet, :style => :expanded # reemplazado
|
sass :stylesheet, :style => :expanded # reemplazado
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -281,7 +277,6 @@ La gem/librería sass es necesaria para renderizar plantillas Scss:
|
||||||
require 'sass'
|
require 'sass'
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
scss :stylesheet
|
scss :stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -295,7 +290,6 @@ y reemplazadas individualmente.
|
||||||
set :scss, :style => :compact # el estilo por defecto de Sass es :nested
|
set :scss, :style => :compact # el estilo por defecto de Sass es :nested
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
scss :stylesheet, :style => :expanded # reemplazado
|
scss :stylesheet, :style => :expanded # reemplazado
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -307,7 +301,6 @@ La gem/librería less es necesaria para renderizar plantillas Less:
|
||||||
require 'less'
|
require 'less'
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
less :stylesheet
|
less :stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -444,7 +437,6 @@ renderizar plantillas CoffeeScript:
|
||||||
require 'coffee-script'
|
require 'coffee-script'
|
||||||
|
|
||||||
get '/application.js' do
|
get '/application.js' do
|
||||||
content_type 'text/javascript', :charset => 'utf-8'
|
|
||||||
coffee :application
|
coffee :application
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,6 @@ Le gem builder est nécessaire pour utiliser la fonction de rendu builder:
|
||||||
require 'builder'
|
require 'builder'
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
content_type 'application/xml', :charset => 'utf-8'
|
|
||||||
builder :index
|
builder :index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -238,7 +237,6 @@ Le gem nokogiri est nécessaire pour utiliser la fonction de rendu nokogiri:
|
||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
content_type 'application/xml', :charset => 'utf-8'
|
|
||||||
nokogiri :index
|
nokogiri :index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -252,7 +250,6 @@ Le gem sass est nécessaire pour utiliser la fonction de rendu Sass:
|
||||||
require 'sass'
|
require 'sass'
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
sass :stylesheet
|
sass :stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -266,7 +263,6 @@ et supportent aussi la réécriture (surcharge) comme dans cet exemple.
|
||||||
set :sass, :style => :compact # le style par défaut dans Sass est :nested
|
set :sass, :style => :compact # le style par défaut dans Sass est :nested
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
sass :stylesheet, :style => :expanded # surcharge
|
sass :stylesheet, :style => :expanded # surcharge
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -278,7 +274,6 @@ Le gem sass est nécessaire pour utiliser la fonction de rendu Scss:
|
||||||
require 'sass'
|
require 'sass'
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
scss :stylesheet
|
scss :stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -292,7 +287,6 @@ et supportent aussi la réécriture (surcharge) comme dans cet exemple.
|
||||||
set :scss, :style => :compact # le style par défaut de Scss est :nested
|
set :scss, :style => :compact # le style par défaut de Scss est :nested
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
scss :stylesheet, :style => :expanded # surcharge
|
scss :stylesheet, :style => :expanded # surcharge
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -304,7 +298,6 @@ Le gem less est nécessaire pour utiliser la fonction de rendu Less:
|
||||||
require 'less'
|
require 'less'
|
||||||
|
|
||||||
get '/stylesheet.css' do
|
get '/stylesheet.css' do
|
||||||
content_type 'text/css', :charset => 'utf-8'
|
|
||||||
less :stylesheet
|
less :stylesheet
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -441,7 +434,6 @@ fonction de rendu CoffeeScript:
|
||||||
require 'coffee-script'
|
require 'coffee-script'
|
||||||
|
|
||||||
get '/application.js' do
|
get '/application.js' do
|
||||||
content_type 'text/javascript', :charset => 'utf-8'
|
|
||||||
coffee :application
|
coffee :application
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue