From: Kai Moritz Date: Mon, 13 Mar 2017 16:57:53 +0000 (+0100) Subject: Projekt-Seite erstellt: Velocity-Template - thymeproxy:variables X-Git-Tag: simple-mapper-1.0.0~5 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4245a308205e5572110f27dac138209dfd6ad9ec;p=simple-mapper Projekt-Seite erstellt: Velocity-Template - thymeproxy:variables --- diff --git a/src/site/template.vm b/src/site/template.vm index 003c8d2..972829a 100644 --- a/src/site/template.vm +++ b/src/site/template.vm @@ -114,17 +114,16 @@ xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.thymeleaf.org" layout:decorator="templates/layout" - th:with=" - uri='$sitePath$alignedFileName', - json='merge:{"pages":{#set($sep = "")#foreach($page in $pages)$sep"$sitePath$page.uri":{"name":"$page.name",#if(!$page.childs.isEmpty())"childs":{#set($csep = "")#foreach($child in $page.childs.entrySet())$csep"$sitePath$child.key":"$child.value"#set($csep = ",")#end},#end"crumbs":[#set($csep = "")#if($siteCrumbs)$siteCrumbs#set($csep = ",")#end#foreach($crumb in $page.crumbs)$csep{"uri":"$sitePath$crumb.uri","name":"$crumb.name"}#set($csep = ",")#end]#if($page.title),"title":"$page.title"#end#if($page.alt),"alt":"$page.alt"#end#if($page.img),"img":"$page.img"#end}#set($sep = ",")#end}#if($siteTitle),"site_title":"$siteTitle"#end#if($siteAlt),"site_alt":"$siteAlt"#end#if($siteImg),"site_img":"$siteImg"#end}' - " + th:with="title='$title', uri='$sitePath$alignedFileName'" > juplo - $title - +

Path