javascript – Understanding of TPL files-ThrowExceptions

Exception or error:

I’ve started researching tpl files as I’ve been seeing something in them that I don’t recognize, from what I could tell from my research it is just a php file that people renamed for includes but I’ve noticed there are conditions being used I’ve never really seen before… like in WHMCS there are conditions like so:

    {if $languagechangeenabled && count($locales) > 1}
        <li>
            <a href="#" class="choose-language" data-toggle="popover" id="languageChooser">
                {$activeLocale.localisedName}
                <b class="caret"></b>
            </a>
            <div id="languageChooserContent" class="hidden">
                <ul>
                    {foreach $locales as $locale}
                        <li>
                            <a href="{$currentpagelinkback}language={$locale.language}">{$locale.localisedName}</a>
                        </li>
                    {/foreach}
                </ul>
            </div>
        </li>
    {/if}

Is there any documentation someone can link me to for this? It’s not essential to me as I just do this in php but I’m really curious as it’s not just the first time I have noticed it

Is this just another way of doing php without the php? tags?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *