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.
如果文件名为 x.scss 和 y.haml,Sprockets 肯定有足够的信息来假设默认情况下它应该呈现为 css 和 html(CoffeeScript 也是如此)?
这用于清楚地表明您想要某种文件。
这在大多数情况下可能很明显,因此您可以跳过它。
实际上,当您提供不同类型的视图时确实需要这样做:.pdf例如.html。在这种情况下,您必须使用.pdf.haml,.html.haml
.pdf
.html
.pdf.haml
.html.haml
coffeeand 也一样scss,我从不使用.js.coffee,总是.coffee直接使用。
coffee
scss
.js.coffee
.coffee