1

Slim documentation says that the template/.slim file can be compiled and cached with tilt. I am using slim for the views in sinatra. How to precompile the file / is it possible to view the compiled file.. Also would it cache the precompiled file after the first call. should I do some setting for it in sinatra

Thanks

ylluminate
  • 12,102
  • 17
  • 78
  • 152
coool
  • 8,085
  • 12
  • 60
  • 80

1 Answers1

0

well, the Sinatra Readme is your friend. In :production all your views are compiled by default. Please also have a look at the Caching section in the Readme which will give you the different options.

three
  • 8,262
  • 3
  • 35
  • 39