Author: wikier
Date: Wed Apr 24 07:28:19 2013
New Revision: 1471273

URL: http://svn.apache.org/r1471273
Log:
added new section for ldpath templating

Added:
    incubator/marmotta/site/trunk/content/markdown/ldpath/template.md
Modified:
    incubator/marmotta/site/trunk/content/site.xml

Added: incubator/marmotta/site/trunk/content/markdown/ldpath/template.md
URL: 
http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/markdown/ldpath/template.md?rev=1471273&view=auto
==============================================================================
--- incubator/marmotta/site/trunk/content/markdown/ldpath/template.md (added)
+++ incubator/marmotta/site/trunk/content/markdown/ldpath/template.md Wed Apr 
24 07:28:19 2013
@@ -0,0 +1,38 @@
+# LDPath Template
+
+LDPath implements an extension of the 
[FreeMarker](http://freemarker.sourceforge.net/) 
+template engine that allows constructing templates with LDPath statements for 
inserting 
+and iterating over values.
+
+## Usage
+
+This is the basic Java code you may need to write:
+
+    @@TODO
+
+## Template example
+
+    <@namespace rdfs="http://www.w3.org/2000/01/rdf-schema#"; />
+    <html>
+        <head>
+            <title><@ldpath path="rdfs:label[@en]"/></title>
+        </head>
+
+        <body>
+            <h1><@ldpath path="rdfs:label[@en]"/></h1>
+
+            <p>
+                <@ldpath path="rdfs:comment[@en]"/>
+            </p>
+
+            <ul>
+                <@ldpath path="fn:sort(rdf:type)">
+                    <#if evalLDPath("rdfs:label[@en] :: xsd:string")??>
+                        <li><@ldpath path="rdfs:label[@en] :: 
xsd:string"/></li>
+                    </#if>
+                </@ldpath>
+            </ul>
+        </body>
+
+    </html>
+

Modified: incubator/marmotta/site/trunk/content/site.xml
URL: 
http://svn.apache.org/viewvc/incubator/marmotta/site/trunk/content/site.xml?rev=1471273&r1=1471272&r2=1471273&view=diff
==============================================================================
--- incubator/marmotta/site/trunk/content/site.xml (original)
+++ incubator/marmotta/site/trunk/content/site.xml Wed Apr 24 07:28:19 2013
@@ -108,6 +108,7 @@
             <item name="Usage" href="ldpath/usage.html"/>
             <item name="Backends" href="ldpath/backends.html"/>
             <item name="Functions" href="ldpath/functions.html"/>
+            <item name="Template" href="ldpath/template.html"/>
         </menu>
         <menu name="Project" ref="reports" inherit="top" />
         <menu name="The ASF">


Reply via email to