1
0
Fork 0
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:
Konstantin Haase 2013-02-26 20:42:39 +11:00
parent e7f21f1056
commit 2db8028a1f
2 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -1,6 +1,7 @@
require File.expand_path('../helper', __FILE__)
begin
require 'stylus'
require 'stylus/tilt'
begin