Theragonas Theragonas - 3 months ago 31
HTML Question

What does a double percentage sign (%%) mean in JavaScript?

To give a little context, I am working with BigCommerce theme template files right now, and I do not understand some of the syntax.

They use a double percentage sign to wrap certain things in the document. An example:

<!-- Include visitor tracking code (if any) -->

They will also be included in source attributes sometimes, like this:

<script type="text/javascript" src="%%GLOBAL_TPL_PATH%%/js/imagesLoaded.js"></script>

I can't for the life of me figure out what the %% means.

Hopefully that will give enough info to answer the question, if anything else is needed let me know. If this is not a JavaScript thing like I assumed, feel free to move it to the appropriate category.

Thank you in advance!


It appears to be a templating tool, that the people who made the template would change according to what they want to put in there.