aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/WEB-INF/tags/common/head-element.tagx
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-19 23:42:12 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-19 23:42:12 +0100
commit79c6c1d042fdad06294f4db57c5b8c91b6a0e5d0 (patch)
tree815da28b8238bbe3bf44ef126fb79c0ffaf41de6 /src/main/webapp/WEB-INF/tags/common/head-element.tagx
parent4abc880c4b9ce6888acab85c815514f3dd195fa4 (diff)
downloadesper-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/head-element.tagx')
-rw-r--r--src/main/webapp/WEB-INF/tags/common/head-element.tagx34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/tags/common/head-element.tagx b/src/main/webapp/WEB-INF/tags/common/head-element.tagx
new file mode 100644
index 0000000..5321612
--- /dev/null
+++ b/src/main/webapp/WEB-INF/tags/common/head-element.tagx
@@ -0,0 +1,34 @@
+<!--suppress JspAbsolutePathInspection -->
+<jsp:root version="2.0"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:jsp="http://java.sun.com/JSP/Page">
+ <jsp:output omit-xml-declaration="yes"/>
+ <jsp:directive.attribute name="title" type="java.lang.String" required="false"/>
+ <jsp:directive.attribute name="app" type="java.lang.String" required="false"/>
+
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title><c:if test="${not empty title }">${title } - </c:if>Yeah</title>
+
+ <link type="text/css" rel="stylesheet" href="/external/bootstrap-2.2.2/css/bootstrap.css"/>
+
+ <script type="text/javascript" src="/external/headjs-0.99/head.min.js"><!-- --></script>
+ <script type="text/javascript">
+ head.js(
+ {jquery: "/external/jquery-1.8.3/jquery.js"},
+ {angularjs: "/external/angular-1.0.3/angular.js"},
+ {angularjsResource: "/external/angular-1.0.3/angular-resource.js"}
+ );
+ </script>
+ <script>var noCache = new Date().getTime();</script>
+
+ <jsp:doBody/>
+
+ <script type="text/javascript">
+ head.ready(function() {
+ angular.bootstrap(document, [<c:out value="${app}"/>]);
+ });
+ </script>
+ </head>
+
+</jsp:root>