Theragonas Theragonas - 18 days ago 3
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) -->
%%GLOBAL_TrackingCode%%
%%GLOBAL_DesignModeStyleSheet%%
%%GLOBAL_HeaderImageStyle%%


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!

Answer

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.

Comments