A very interesting question has appeared - is it possible to call functions from gulpfile in jade templates?
For example. We have a hello(text) function, it simply prints the value of the passed parameter to the console. The point is to access this function from the template.
Something like this:
+someBlock hello('It\'s alive!') +someBlock Accordingly, when the execution of the task reaches the rendering of the jade, in the console we will see It's alive! .
It is very important that rendering should be done via the gulp-jade plugin, not the jade.