Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Slim 文档说 template/.slim 文件可以通过倾斜编译和缓存。我在 sinatra 中使用 slim 视图。如何预编译文件/是否可以查看编译后的文件。第一次调用后它是否会缓存预编译文件。我应该在 sinatra 中为它做一些设置吗
谢谢
好吧,Sinatra 自述文件是您的朋友。在 :production 你的所有视图都是默认编译的。另请查看自述文件中的缓存部分,该部分将为您提供不同的选项。