Closed Montaro2017 closed 4 years ago
For example: I have a some files include a same file:
index.html @@include("head.html")
home.html @@include("head.html")
Can i get this files' name and according that to use different style for tags?
Such as head.html
<li @@if(file.name=="index.html" class="active")>Index</li> <li @@if(file.name=="home.html" class="active")>Home</li>
And why is there no else?
For example: I have a some files include a same file:
index.html @@include("head.html")
home.html @@include("head.html")
Can i get this files' name and according that to use different style for tags?
Such as head.html
<li @@if(file.name=="index.html" class="active")>Index</li> <li @@if(file.name=="home.html" class="active")>Home</li>
And why is there no else?