You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2016/04/21 20:47:17 UTC

svn commit: r1740384 - in /sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main: ./ html.html

Author: olli
Date: Thu Apr 21 18:47:17 2016
New Revision: 1740384

URL: http://svn.apache.org/viewvc?rev=1740384&view=rev
Log:
SLING-5680 Add Integration Tests for Scripting Thymeleaf

add missing template for thymeleaf/page/main

Added:
    sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main/
    sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main/html.html

Added: sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main/html.html
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main/html.html?rev=1740384&view=auto
==============================================================================
--- sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main/html.html (added)
+++ sling/trunk/contrib/scripting/org.apache.sling.scripting.thymeleaf.it/src/main/resources/apps/thymeleaf/page/main/html.html Thu Apr 21 18:47:17 2016
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<html data-th-with="page=${request.adaptTo(@org.apache.sling.scripting.thymeleaf.it.page.Page@class)}">
+<head>
+  <meta charset="UTF-8"/>
+  <title data-th-text="${page.title}">Page Title</title>
+</head>
+<body>
+<p data-th-text="${page.name}">Page Name</p>
+<p data-th-text="${page.path}">Page Path</p>
+</body>
+</html>