mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
typo in README
This commit is contained in:
parent
174608498b
commit
8a216bc310
1 changed files with 17 additions and 17 deletions
34
README.rdoc
34
README.rdoc
|
@ -345,7 +345,7 @@ to use (and to be thread-safe), you should simply require it first:
|
|||
=== Haml Templates
|
||||
|
||||
Dependency:: {haml}[http://haml.info/]
|
||||
File Extensions:: <tt>.haml</tt>
|
||||
File Extension:: <tt>.haml</tt>
|
||||
Example:: <tt>haml :index, :format => :html5</tt>
|
||||
|
||||
=== Erb Templates
|
||||
|
@ -359,7 +359,7 @@ Example:: <tt>erb :index</tt>
|
|||
=== Builder Templates
|
||||
|
||||
Dependency:: {builder}[http://builder.rubyforge.org/]
|
||||
File Extensions:: <tt>.builder</tt>
|
||||
File Extension:: <tt>.builder</tt>
|
||||
Example:: <tt>builder { |xml| xml.em "hi" }</tt>
|
||||
|
||||
It also takes a block for inline templates (see example).
|
||||
|
@ -367,7 +367,7 @@ It also takes a block for inline templates (see example).
|
|||
=== Nokogiri Templates
|
||||
|
||||
Dependency:: {nokogiri}[http://nokogiri.org/]
|
||||
File Extensions:: <tt>.nokogiri</tt>
|
||||
File Extension:: <tt>.nokogiri</tt>
|
||||
Example:: <tt>nokogiri { |xml| xml.em "hi" }</tt>
|
||||
|
||||
It also takes a block for inline templates (see example).
|
||||
|
@ -375,25 +375,25 @@ It also takes a block for inline templates (see example).
|
|||
=== Sass Templates
|
||||
|
||||
Dependency:: {sass}[http://sass-lang.com/]
|
||||
File Extensions:: <tt>.sass</tt>
|
||||
File Extension:: <tt>.sass</tt>
|
||||
Example:: <tt>sass :stylesheet, :style => :expanded</tt>
|
||||
|
||||
=== SCSS Templates
|
||||
|
||||
Dependency:: {sass}[http://sass-lang.com/]
|
||||
File Extensions:: <tt>.scss</tt>
|
||||
File Extension:: <tt>.scss</tt>
|
||||
Example:: <tt>scss :stylesheet, :style => :expanded</tt>
|
||||
|
||||
=== Less Templates
|
||||
|
||||
Dependency:: {less}[http://www.lesscss.org/]
|
||||
File Extensions:: <tt>.less</tt>
|
||||
File Extension:: <tt>.less</tt>
|
||||
Example:: <tt>less :stylesheet</tt>
|
||||
|
||||
=== Liquid Templates
|
||||
|
||||
Dependency:: {liquid}[http://www.liquidmarkup.org/]
|
||||
File Extensions:: <tt>.liquid</tt>
|
||||
File Extension:: <tt>.liquid</tt>
|
||||
Example:: <tt>liquid :index, :locals => { :key => 'value' }</tt>
|
||||
|
||||
Since you cannot call Ruby methods (except for +yield+) from a Liquid
|
||||
|
@ -427,7 +427,7 @@ template than for the layout by passing the <tt>:layout_engine</tt> option.
|
|||
=== Textile Templates
|
||||
|
||||
Dependency:: {RedCloth}[http://redcloth.org/]
|
||||
File Extensions:: <tt>.textile</tt>
|
||||
File Extension:: <tt>.textile</tt>
|
||||
Example:: <tt>textile :index, :layout_engine => :erb</tt>
|
||||
|
||||
It is not possible to call methods from textile, nor to pass locals to it. You
|
||||
|
@ -447,7 +447,7 @@ template than for the layout by passing the <tt>:layout_engine</tt> option.
|
|||
=== RDoc Templates
|
||||
|
||||
Dependency:: {rdoc}[http://rdoc.rubyforge.org/]
|
||||
File Extensions:: <tt>.rdoc</tt>
|
||||
File Extension:: <tt>.rdoc</tt>
|
||||
Example:: <tt>rdoc :README, :layout_engine => :erb</tt>
|
||||
|
||||
It is not possible to call methods from rdoc, nor to pass locals to it. You
|
||||
|
@ -467,7 +467,7 @@ template than for the layout by passing the <tt>:layout_engine</tt> option.
|
|||
=== Radius Templates
|
||||
|
||||
Dependency:: {radius}[http://radius.rubyforge.org/]
|
||||
File Extensions:: <tt>.radius</tt>
|
||||
File Extension:: <tt>.radius</tt>
|
||||
Example:: <tt>radius :index, :locals => { :key => 'value' }</tt>
|
||||
|
||||
Since you cannot call Ruby methods directly from a Radius template, you almost
|
||||
|
@ -476,7 +476,7 @@ always want to pass locals to it.
|
|||
=== Markaby Templates
|
||||
|
||||
Dependency:: {markaby}[http://markaby.github.com/]
|
||||
File Extensions:: <tt>.mab</tt>
|
||||
File Extension:: <tt>.mab</tt>
|
||||
Example:: <tt>markaby { h1 "Welcome!" }</tt>
|
||||
|
||||
It also takes a block for inline templates (see example).
|
||||
|
@ -484,19 +484,19 @@ It also takes a block for inline templates (see example).
|
|||
=== RABL Templates
|
||||
|
||||
Dependency:: {rabl}[https://github.com/nesquena/rabl]
|
||||
File Extensions:: <tt>.rabl</tt>
|
||||
File Extension:: <tt>.rabl</tt>
|
||||
Example:: <tt>rabl :index</tt>
|
||||
|
||||
=== Slim Templates
|
||||
|
||||
Dependency:: {slim}[http://slim-lang.com/]
|
||||
File Extensions:: <tt>.slim</tt>
|
||||
File Extension:: <tt>.slim</tt>
|
||||
Example:: <tt>slim :index</tt>
|
||||
|
||||
=== Creole Templates
|
||||
|
||||
Dependency:: {creole}[https://github.com/minad/creole]
|
||||
File Extensions:: <tt>.creole</tt>
|
||||
File Extension:: <tt>.creole</tt>
|
||||
Example:: <tt>creole :wiki, :layout_engine => :erb</tt>
|
||||
|
||||
It is not possible to call methods from creole, nor to pass locals to it. You
|
||||
|
@ -517,13 +517,13 @@ template than for the layout by passing the <tt>:layout_engine</tt> option.
|
|||
|
||||
Dependency:: {coffee-script}[https://github.com/josh/ruby-coffee-script]
|
||||
and a {way to execute javascript}[https://github.com/sstephenson/execjs/blob/master/README.md#readme]
|
||||
File Extensions:: <tt>.coffee</tt>
|
||||
File Extension:: <tt>.coffee</tt>
|
||||
Example:: <tt>coffee :index</tt>
|
||||
|
||||
=== Yajl Templates
|
||||
|
||||
Dependency:: {yajl-ruby}[https://github.com/brianmario/yajl-ruby]
|
||||
File Extensions:: <tt>.yajl</tt>
|
||||
File Extension:: <tt>.yajl</tt>
|
||||
Example:: <tt>yajl :index, :locals => { :key => 'qux' }, :callback => 'present', :variable => 'resource' </tt>
|
||||
|
||||
The template source is evaluated as a Ruby string, and the resulting json variable is converted #to_json.
|
||||
|
@ -538,7 +538,7 @@ The <tt>:callback</tt> and <tt>:variable</tt> options can be used to decorate th
|
|||
=== WLang Templates
|
||||
|
||||
Dependency:: {wlang}[https://github.com/blambeau/wlang/]
|
||||
File Extensions:: <tt>.wlang</tt>
|
||||
File Extension:: <tt>.wlang</tt>
|
||||
Example:: <tt>wlang :index, :locals => { :key => 'value' }</tt>
|
||||
|
||||
Since calling ruby methods is not idiomatic in wlang, you almost always want to pass locals
|
||||
|
|
Loading…
Reference in a new issue