Permalink
Browse files

remove redundant template recipes

  • Loading branch information...
zzak committed Mar 16, 2013
1 parent d9dcb6d commit 3ce131150d90c339828c8edaa2961ba01857abde
Showing with 0 additions and 211 deletions.
  1. +0 −15 views/erubis.md
  2. +0 −19 views/haml.md
  3. +0 −15 views/less.md
  4. +0 −20 views/liquid.md
  5. +0 −15 views/markaby.md
  6. +0 −15 views/nokogiri.md
  7. +0 −20 views/radius.md
  8. +0 −26 views/sass.md
  9. +0 −26 views/scss.md
  10. +0 −15 views/slim.md
  11. +0 −25 views/textile.md
View
@@ -1,15 +0,0 @@
-Erubis
-------
-
-The erubis gem/library is required to render erubis templates:
-
- ## You'll need to require erubis in your app
- require 'erubis'
-
- get '/' do
- erubis :index
- end
-
-Render `./views/index.erubis`
-
-
View
@@ -1,19 +0,0 @@
-Haml
-----
-
-The haml gem/library is required to render HAML templates:
-
- set :haml, :format => :html5 # default Haml format is :xhtml
-
- get '/' do
- haml :index, :format => :html4 # overridden
- end
-
-This will render ./views/index.haml
-
-[Haml's
-options](http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#options) can
-be set globally through Sinatra’s configurations, see [Options and
-Configurations](#configuration), and overridden on an individual basis.
-
-
View
@@ -1,15 +0,0 @@
-Less Templates
---------------
-
-The less gem/library is required to render Less templates:
-
- ## You'll need to require less in your app
- require 'less'
-
- get '/stylesheet.css' do
- less :stylesheet
- end
-
-Renders `./views/stylesheet.less`.
-
-
View
@@ -1,20 +0,0 @@
-Liquid Templates
-----------------
-
-The liquid gem/library is required to render Liquid templates:
-
- ## You'll need to require liquid in your app
- require 'liquid'
-
- get '/' do
- liquid :index
- end
-
-Renders `./views/index.liquid`.
-
-Since you cannot call Ruby methods, except for `yield`, from a Liquid
-template, you almost always want to pass locals to it:
-
- liquid :index, :locals => { :key => 'value' }
-
-
View
@@ -1,15 +0,0 @@
-Markaby Templates
------------------
-
-The markaby gem/library is required to render Markaby templates:
-
- ## You'll need to require markaby in your app
- require 'markaby'
-
- get '/' do
- markaby :index
- end
-
-Renders `./views/index.mab`.
-
-
View
@@ -1,15 +0,0 @@
-Nokogiri
---------
-
-The nokogiri gem/library is required to render nokogiri templates:
-
- ## You'll need to require nokogiri in your app
- require 'nokogiri'
-
- get '/' do
- nokogiri :index
- end
-
-Renders `./views/index.nokogiri`.
-
-
View
@@ -1,20 +0,0 @@
-Radius Templates
-----------------
-
-The radius gem/library is required to render Radius templates:
-
- ## You'll need to require radius in your app
- require 'radius'
-
- get '/' do
- radius :index
- end
-
-Renders `./views/index.radius`.
-
-Since you cannot call Ruby methods, except for `yield`, from a Radius
-template, you almost always want to pass locals to it:
-
- radius :index, :locals => { :key => 'value' }
-
-
View
@@ -1,26 +0,0 @@
-Sass
-----
-
-The sass gem/library is required to render Sass templates:
-
- ## You'll need to require sass in your app
- require 'sass'
-
- get '/' do
- sass :styles
- end
-
-This will render `./views/styles.sass`
-
-[Sass'
-options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options) can
-be set globally through Sinatra's configuration, see [Options and
-Configurations](#configuration), and overridden on an individual basis.
-
- set :sass, :style => :compact # default Sass style is :nested
-
- get '/stylesheet.css' do
- sass :stylesheet, :style => :expanded # overridden
- end
-
-
View
@@ -1,26 +0,0 @@
-Scss Templates
---------------
-
-The sass gem/library is required to render Scss templates:
-
- ## You'll need to require haml or sass in your app
- require 'sass'
-
- get '/stylesheet.css' do
- scss :stylesheet
- end
-
-Renders `./views/stylesheet.scss`.
-
-[Scss' options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options)
-can be set globally through Sinatra's configurations,
-see [Options and Configurations](#configuration),
-and overridden on an individual basis.
-
- set :scss, :style => :compact # default Scss style is :nested
-
- get '/stylesheet.css' do
- scss :stylesheet, :style => :expanded # overridden
- end
-
-
View
@@ -1,15 +0,0 @@
-Slim Templates
---------------
-
-The `slim` gem/library is required to render Slim templates:
-
- # You'll need to require slim in your app
- require 'slim'
-
- get '/' do
- slim :index
- end
-
-Renders `./views/index.slim`.
-
-
View
@@ -1,25 +0,0 @@
-Textile Templates
------------------
-
-The RedCloth gem/library is required to render Textile templates:
-
- ## You'll need to require redcloth in your app
- require "redcloth"
-
- get '/' do
- textile :index
- end
-
-Renders `./views/index.textile`.
-
-It is not possible to call methods from textile, nor to pass locals to it. You
-therefore will usually use it in combination with another rendering engine:
-
- erb :overview, :locals => { :text => textile(:introduction) }
-
-Note that you may also call the textile method from within other templates:
-
- %h1 Hello From Haml!
- %p= textile(:greetings)
-
-

0 comments on commit 3ce1311

Please sign in to comment.