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.
get '/stylesheets/style.css' do header 'Content-Type' => 'text/css; charset=utf-8' sass :style end
不再生成样式表。
什么是 1.0 版兼容的方式来做到这一点?或者,如果您认为问题出在代码上,是否有故障排除建议?
style.sass 文件位于 /views 文件夹中。来自同一文件夹的 Haml 文件渲染正常。
谢谢你。
明白了,似乎标题行已被弃用/不必要并导致错误。
所以,这行得通
get '/stylesheets/style.css' do sass :style end