Home > Article > Web Front-end > jquery.tmpl JQuery template plugin_jquery
URL: http://api.jquery.com/jquery.tmpl/.
Tmpl provides several tags:
${}: equivalent to {{=}}, which is an output variable and is encoded in HTML.
{{html}}: Output variable html, but without html encoding, suitable for outputting html code.
{{if }} {{else}}: Provides branching logic.
{{each}}: Provides loop logic, $value access iteration variables.
The following is a simple template tmpl example: (the code can best explain everything)
Effect: