Questions tagged [Slim Template Language] (38)

2
answers

How to create a javascript templating engine Slim?

Hello! Starting to learn Rails, in the test project I use the Slim template engine. You want to generate the template cart.js.slim Tell me how to form the correct pattern? If you just specify the jquery template is not working. I tried to start the string with a pair of "| " — this combination works, but if the file has 2 l...
Lavada.Lem asked October 7th 19 at 17:18
2
answers

As in Rails by default use SLIM in all projects?

It is necessary that the rails new command to create a project to use SLIM by default.
Dwight asked October 2nd 19 at 20:45
1
answer

How to make to automatically put spaces in gedit for slim?

Hello, Habr! Is there any way to automate the process with spaces for slim in gedit? And then we have everything in hand to put down.
colt_Magg asked September 27th 19 at 19:38
2
answers

How to adding styles (sass) to every new article?

Keep the sass articles in the database and then compile it? but if the articles typed a lot and the user will see only two and will load the css of a large number of.... or use a slim? For example, here is how it is implemented in w-o-s.ru I was looking here in this article There is created a %div.objects in the style attri...
mortimer_Ebert70 asked September 26th 19 at 21:20
3
answers

How to set File Watcher in WebStorm to Slim?

Have the Slim template engine and IDE WebStorm on Windows. Slim-the plugin is installed, but it only adds syntax highlighting. From Slim documentation I do not understand how to use the command "slim --compile", so it is not clear how to create a rule to auto-compile the files.slim in файлы.html.
jamarcus.Sporer asked September 26th 19 at 05:24
1
answer

Grunt slim does not work?

Installed the extension grunt-slim. It happens in PHPStorm on Windows 7 When you run grunt slim console writes errorWarning: LocalJumpError: no block given (yield) How to fix?
jamal.Dare asked September 25th 19 at 21:32
0
answer

The slim templating: is there good examples?

Hello, begin to work with the slim templating engine, the documentation is little written about such features like functions, mixins, variables, etc. Perhaps you have links to good deal on slim ? constantly faced with the problem of writing code or am I reading the Doc wrong ?)
jimmie asked September 25th 19 at 17:41
4
answers

What to choose slim or haml?

Learning RoR planned to use haml but recently came across slim but what to choose? which is better? And why do some call them engines, and some preprocessors. How? and what's the difference?
Sadie.Leannon asked September 24th 19 at 01:42
1
answer

Slim How to set the attribute tag?

Hello in ERB would have done so > How to do this in Slim?
Brain.Hilll asked September 23rd 19 at 22:50
1
answer

How to load the file in Slim document?

There are index files.slim header.slim article.slim. The question is, how to make index.slim when compiling imported all the pieces (header.slim article.slim etc.)?
rogelio_Wi asked September 23rd 19 at 11:10