diff options
Diffstat (limited to 'src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx')
-rw-r--r-- | src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx b/src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx new file mode 100644 index 0000000..4e39e63 --- /dev/null +++ b/src/main/resources/webapp/WEB-INF/tags/common/headjs.tagx @@ -0,0 +1,10 @@ +<jsp:root xmlns:c="http://java.sun.com/jsp/jstl/core" + xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"> + <jsp:directive.tag body-content="empty"/> + <jsp:directive.attribute name="label" type="java.lang.String" required="true"/> + <jsp:directive.attribute name="resource" type="java.lang.String" required="true"/> + + <script type="text/javascript"> + head.js({'${label}':'<c:out value="${resource}"/>?noCache=' + noCache}); + </script> +</jsp:root> |