PHP code example of jsutils / tmpl

1. Go to this page and download the library: Download jsutils/tmpl library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jsutils / tmpl example snippets

html
<_if exp="data.value==34">
    It is 34
<_elseif exp="data.value==40" />
    it is 45
<_else/>
    I dont know
</_if>
html
<_tags jq-label jq-switch/>

javascript

jsutils.tmpl.tags(function(tagName){
    if(tagName.indexOf("jq-")===0){
        module(tag.replace("jq-","jqtags."));
        return true;
    } else {
        return false;
    }
});

javascript

jsutils.tmpl.tags(function(tagName){
    if(tagName.indexOf("jq-")===0){
        module(tag.replace("jq-","jqtags."));
        return true;
    } else {
        return false;
    }
});