mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
need to load both stylus and stylus/tilt
This commit is contained in:
parent
e7f21f1056
commit
2db8028a1f
2 changed files with 13 additions and 1 deletions
13
README.md
13
README.md
|
@ -845,7 +845,18 @@ template than for the layout by passing the `:layout_engine` option.
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
Before being able to use Stylus templates, you need to `require 'stylus/tilt'`.
|
||||
Before being able to use Stylus templates, you need to load `stylus` and
|
||||
`stylus/tilt` first:
|
||||
|
||||
``` ruby
|
||||
require 'sinatra'
|
||||
require 'stylus'
|
||||
require 'stylus/tilt'
|
||||
|
||||
get '/' do
|
||||
stylus :example
|
||||
end
|
||||
```
|
||||
|
||||
#### Yajl Templates
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
require File.expand_path('../helper', __FILE__)
|
||||
|
||||
begin
|
||||
require 'stylus'
|
||||
require 'stylus/tilt'
|
||||
|
||||
begin
|
||||
|
|
Loading…
Add table
Reference in a new issue