slim-langtilt

cannot load stylus in slim template


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.

Solution

  • Add the patch to tilt registeration.

      require 'stylus/tilt/stylus'
      register StylusTemplate, 'stylus'