lib
Combine css and javascript includes in a single request.
Generates a <link /> or <script /> element for including the given libraries. This combines all css and javascript files in one request, saving multiple roundtrips to the server.
Example:
{% lib
"css/zp-compressed.css"
"css/zp-admin.css"
"css/zp-wysiwyg.css"
"css/zp-dialog.css"
"css/zp-formreplace.css"
"css/zp-finder.css"
"css/zp-growl.css"
%}
Will output:
<link href="/lib/css/zp-compressed~zp-admin~zp-wysiwyg~zp-dialog~zp-formreplace~zp-finder~zp-growl~63417066183.css" type="text/css" media="all" rel="stylesheet" />
The number at the end is the Unix modification time of the most recently changed file.
This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.