What does $ {imagepath} mean in a CSS file?

I am trying to adapt a perl script that is used to create a popup page for a public wifi setup. I was only given a few example files to work with and no documentation. A few hours later, on the phone with the hotspot vendor, I was told that I could "just modify" the examples to design our custom page. I am trying to understand what is going on in the files.

I have a .css file with the following.

#logo_container {
    width: 528px; height: 58px;
    background-image: url(${imagepath}body_title_line.gif);
    border: 0;
}

      

I also have a .pl file with a variable $html_body_top

containing the following html snippet:

<a href=\"${imagepath}WirelessAUP-ibm.htm\" target=\"_self\">Acceptable Use Policy</a>

What does $ {imagepath} refer to ? Can I get it from him?

+1


a source to share


5 answers


I think the root directory of your images. So if body_ title_line.gif is under / images /, the imagePath variable should probably reflect that.



CSS doesn't support variables, so this is something injected by your PL script.

+3


a source


It is possible that the variable replaced by the Template Toolkit and not your Perl script. It is also possible that the Perl script does not use strict and, due to the lack of variable declaration, replaces the empty string instead of $ {imagepath}.



+2


a source


It looks like the perl script should be run with some $ imagepath value. $ {imagepath} is equal to the $ imagepath variable. Parentheses are commonly used when variables are used in a string to eliminate ambiguity

+1


a source


Looks like a token to be replaced by some kind of assembly script that will work on all files in the project.

+1


a source


I would assume that the image path is a variable from the perl script, replaced during generation with the actual URL.

+1


a source







All Articles