mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Doc for erubis
This commit is contained in:
parent
59e797e997
commit
7c5d693718
1 changed files with 13 additions and 0 deletions
13
README.rdoc
13
README.rdoc
|
@ -150,6 +150,19 @@ and overridden on an individual basis.
|
|||
|
||||
Renders <tt>./views/index.erb</tt>
|
||||
|
||||
=== Erubis
|
||||
|
||||
The erubis gem/library is required to render builder templates:
|
||||
|
||||
## You'll need to require erubis in your app
|
||||
require 'erubis'
|
||||
|
||||
get '/' do
|
||||
erubis :index
|
||||
end
|
||||
|
||||
Renders <tt>./views/index.erubis</tt>
|
||||
|
||||
=== Builder Templates
|
||||
|
||||
The builder gem/library is required to render builder templates:
|
||||
|
|
Loading…
Add table
Reference in a new issue