How to name a SLIM file? .Stroy? .Html.slim?

Sorry for such a stupid question, but could not find it in the docs:

filename.slim

filename.html.slim

It seems like a really great language to work with. I used to use HAML , so I think it will be a pretty nice transition.

+6
source share
2 answers
 filename.html.slim 

However, in a general sense, this

 filename.response_type.rendering_engine 

eg.

 index.xml.haml index.rss.slim 
+8
source

.html.slim appears to be the agreement used by the slim creator. Although this is similar to the convention used between rails for view files, including .html.haml and .html.erb , for example. The same convention is used for a large number of abstract files, such as .css.scss and .js.coffee .

0
source

Source: https://habr.com/ru/post/971827/


All Articles