You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/06/29 17:30:13 UTC

svn commit: r1800305 - in /myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta: ./ meta.xhtml

Author: lofwyr
Date: Thu Jun 29 17:30:13 2017
New Revision: 1800305

URL: http://svn.apache.org/viewvc?rev=1800305&view=rev
Log:
TOBAGO-1751: Add META-tags to <head>-tag

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta/
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta/meta.xhtml

Added: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta/meta.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta/meta.xhtml?rev=1800305&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta/meta.xhtml (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/30-concept/78-meta/meta.xhtml Thu Jun 29 17:30:13 2017
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * 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.
+-->
+
+<ui:composition template="/main.xhtml"
+                xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:tc="http://myfaces.apache.org/tobago/component">
+  <ui:param name="title" value="Meta"/>
+
+  <p>
+    Sometimes it might be useful to define
+    <tc:link label="HTML Meta Tags" value="https://www.w3.org/wiki/HTML/Elements/meta"/> in a page.
+    You can set e. g. search keywords anywhere on a page like
+    <pre><code class="language-markup">&lt;tc:meta name="keywords" content="tobago,demo"></code></pre>
+    The result is a meta tag in the HTML head.
+  </p>
+
+</ui:composition>