4

when I am trying to use the styl: tag in the stylus file I am not able to compile it...here is the error I am getting.

Temple::FilterError: Tilt engine styl is not available.
  Use --trace for backtrace.
coool
  • 8,085
  • 12
  • 60
  • 80
  • What's the output of the `--trace` command? I think the error is clear: you are not including the basic `Tilt engine`.. Take a look at `https://github.com/slim-template/slim` under the `Embedded engines (Markdown, ...)` section. – GuyT Jun 03 '14 at 08:30
  • It has to be something like `Slim::Embedded.default_options[:styl] = {}` – GuyT Jun 03 '14 at 08:36
  • where do you need to put the change – coool Jun 03 '14 at 14:26

1 Answers1

0

Add the patch to tilt registeration.

  require 'stylus/tilt/stylus'
  register StylusTemplate, 'stylus'
coool
  • 8,085
  • 12
  • 60
  • 80