R
R
retyui2015-11-20 12:34:39
JavaScript
retyui, 2015-11-20 12:34:39

Jade how to get filename?

You need to know its name in a certain file!
something like this: for index.jade
title!= "Текущий файл #{global_scouting.filename}"
Compiled html :
<title>Текущий файл index.jade</title>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2015-11-20
@retyui

I am compiling jade with gulp and there is a wonderful gulp-data plugin for it, it can pass whatever you want to the template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question