Should I use x-tmpl in rails when using blueimp jQuery file upload?

I added jQuery File Upload to my rails application recently, similar to the one shown at the following link: https://github.com/blueimp/jQuery-File-Upload/wiki/Rails-setup-for-V6 .

Each version of the rail implementation I've seen so far has <script id="template-download" type="text/x-tmpl"> -part. Inside these script tags, a template is used to place existing data.

There is also a version of <script id="template-download" type="text/x-jquery-tmpl"> at https://github.com/yortz/carrierwave_jquery_file_upload/blob/master/app/views/pictures/_template-download .html.erb , which is very similar to x-tmpl .

My questions:

What are the benefits of x-tmpl ?

At github.com/blueimp/jQuery-File-Upload/wiki/Template-Engine it says:

"However, you do not need to use this template engine and can replace it with another implementation by setting uploadTemplateId, downloadTemplateId, uploadTemplate and downloadTemplate Options" For me, this sounds like it can be used normal _partial_xy.html.erb instead of x-tmpl.

Am I mistaken?

If so, is it possible to at least use rail assistants inside the template, for example number_to_currency, or should I implement it, as is done for formatFileSize in jquery.fileupload-ui.js?

+8
jquery blueimp jquery-templates multiple-file-upload
source share

No one has answered this question yet.

See related questions:

4523
"Thinking in AngularJS" if I have jQuery background?
2817
How can I upload files asynchronously?
694
Download jQuery Ajax file
25
Download blueImp / jquery file - How to get an error message if the file type was not accepted?
14
jQuery-File-Upload by blueimp - additional headers
10
How to remove a file from the queue to stop the download before the download starts in blueimp Basic?
0
Key questions of jQuery re. blueimp-jQuery-File-Upload with Java
0
Blueimp jQuery file upload plugin with MySQL
0
How to upload file data for uploading a template on the update page in blueimp jquery file upload
0
Download multiple files - Blueimp jQuery uploader

All Articles