Reputation: 75
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!
Upvotes: 0
Views: 3824
Reputation: 166
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.
Upvotes: 1
Reputation: 4428
This is not JavaScript, it's clearly a templating language's marker for variables.
Upvotes: 1