diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-19 23:42:12 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-12-19 23:42:12 +0100 |
commit | 79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0 (patch) | |
tree | 815da28b8238bbe3bf44ef126fb79c0ffaf41de6 /src/main/webapp/WEB-INF/tags/common/headjs.tagx | |
parent | 4abc880c4b9ce6888acab85c815514f3dd195fa4 (diff) | |
download | esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.tar.gz esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.tar.bz2 esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.tar.xz esper-testing-79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0.zip |
o Adding a basic web app.
Diffstat (limited to 'src/main/webapp/WEB-INF/tags/common/headjs.tagx')
-rw-r--r-- | src/main/webapp/WEB-INF/tags/common/headjs.tagx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/tags/common/headjs.tagx b/src/main/webapp/WEB-INF/tags/common/headjs.tagx new file mode 100644 index 0000000..4e39e63 --- /dev/null +++ b/src/main/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> |