代码之家  ›  专栏  ›  技术社区  ›  aaandre

从sinatra应用程序呈现sass模板不起作用。这是因为v.1不兼容吗?解决方法?

  •  0
  • aaandre  · 技术社区  · 16 年前
    get '/stylesheets/style.css' do
      header 'Content-Type' => 'text/css; charset=utf-8'
      sass :style
    end
    

    不再生成样式表。

    这个风格.sass文件位于/views文件夹中。同一文件夹中的Haml文件渲染正常。

    非常感谢。

    1 回复  |  直到 16 年前
        1
  •  3
  •   aaandre    16 年前

    明白了,似乎头行不推荐/不必要,并导致了一个错误。

    所以,这个成功了

    get '/stylesheets/style.css' do
      sass :style
    end