Home  >  Article  >  Web Front-end  >  jquery.tmpl JQuery template plugin_jquery

jquery.tmpl JQuery template plugin_jquery

WBOY
WBOYOriginal
2016-05-16 18:01:041139browse

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:

image
demo download

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn