K
K
Kirill Ushakov2018-04-03 12:07:04
gulp.js
Kirill Ushakov, 2018-04-03 12:07:04

How to accept, pass variables to Slim::Template.new("").render()?

How to pass and receive variables from Slim::Template.new("").render()
Using slim in conjunction with gulp
An example of what you need
index.slim

== Slim::Template.new('partitial.slim', :pretty => true).render('здесь надо задать переменную')

partial.slim
а здесь ее надо как-то принять и вывести
PS. I'm trying to hang a class on the header, depending on which page it is added to.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question