Arttemplate's question?

see that the arttemplate template engine is used in a project to package and build the entire project with jquery and webpack, but what do you mean by data-type and data-click in the source code, or all the attributes that begin with data- in the project, or how do you define these methods in data-? This parsing method is not provided in arttemplate syntax. How do you execute this code in the end? I don"t quite understand it. Please ask your bosses

.

clipboard.png

clipboard.png

clipboard.png


I have never used this framework, but I guess it is done by reading the attribute values of each dom element or by regularly matching these attributes


data-* this part is not the syntax of arttemplate
only {{}} <% > this kind of template syntax is

of art.

you gave too little source code to see if it belongs to other components


data-*, is a new property of HTML5 and is used for custom properties, that is, properties that do not belong to the existing properties of HTML5 (id, class, and so on).
jquery get:

$(id) .attr (data-*)

for example, the one in data-click is the parameter needed when clicking.
if you look for it in the code, there should be a place to use these data-*.


all template engines are for strings. Therefore, no template engine can parse HTML. So these attributes are for something else.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3699d-2c03f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3699d-2c03f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?