Is this what is the code?

The following code is the syntax of the JavaScript or PHP code?
{% if (file.error) { %}

Started by Arlen at February 10, 2016 - 4:42 AM

This is a HTML file, the code as follows:
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
...


Don't know {%%} what Dongdong, is the PHP code? Or JavaScript grammar? Checked on the net also did not check

Posted by Arlen at February 21, 2016 - 5:34 AM

This is a template engine grammar
Details of which, is not very clear
You should know

Posted by Walker at February 24, 2016 - 5:45 AM

<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
    <tr class="template-upload fade">
        <td>
            <span class="preview"></span>
        </td>
        <td>
            <p class="name">{%=file.name%}</p>
            {% if (file.error) { %}
                <div><span class="label label-danger">Error</span> {%=file.error%}</div>
            {% } %}
        </td>
        <td>
            <p class="size">{%=o.formatFileSize(file.size)%}</p>
            {% if (!o.files.error) { %}
                <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
            {% } %}
        </td>

Posted by Arlen at October 25, 2016 - 9:09 PM

This is a template engine grammar, as is ASP or PHP language template engine, this is about to see your program, if your program is PHP, a template engine that is PHP grammar

Then there will be a replacement function of the template engine to the program, change into normal
if(file.error){
}
The format of the

Posted by Asa at November 02, 2016 - 9:27 PM

This is a template engine Grammar (syntax can be customized), you can look at the reference file is an PHP file, or another file!

Posted by Stella at November 11, 2016 - 9:42 PM

This project must have other files, see. There should be a.Php file or other

Posted by Ashley at November 22, 2016 - 10:29 PM

Post project directory

Posted by Alice at November 25, 2016 - 10:56 PM

Is it right? By the Smarty template engine

Posted by Alva at December 03, 2016 - 11:12 PM

This is a module engine! The concrete syntax is decided according to the template engine!

Posted by Peter at December 12, 2016 - 11:34 PM

Some frameworks define grammar, are not necessarily fixed amount!

Posted by Benjamin at December 14, 2016 - 12:32 AM

https://github.com/blueimp/In jQuery-File-Upload index.html

Posted by Arlen at December 21, 2016 - 1:28 AM

There are other PHP files in the project, but do not understand the PHP syntax
The project is open source https://github.com/blueimp/jQuery-File-Upload this code is in index.html

Posted by Arlen at December 29, 2016 - 2:08 AM

{% %}Custom template identifiers can enter the start and end of PHP template code

Posted by Cash at January 01, 2017 - 3:00 AM

When the file of any errors, such as file type is prohibited, the file size does not comply with the contract, will be file.error.

Posted by Alice at January 02, 2017 - 3:42 AM

The ASP template

Posted by natascha at January 07, 2017 - 3:08 AM

ASP marker, {%%} with PHP in <> a mean??

Posted by Duke at January 13, 2017 - 3:18 AM