[
https://issues.apache.org/jira/browse/WW-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806390#comment-13806390
]
Lukasz Lenart commented on WW-4145:
-----------------------------------
One more thing, as now {{~~~}} is used to check also parent theme I have
introduced {{expandTheme}} variable into Freemarker's templates. I'm not sure
if it's the right name, to show that it will search parent theme for a
template, e.g.
{code:xml|title=label.ftl from css_xhtml theme}
<#include
"/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
{code}
wdyt?
> file.ftl in xhtml theme directly references xhtml controlfooter.ftl
> -------------------------------------------------------------------
>
> Key: WW-4145
> URL: https://issues.apache.org/jira/browse/WW-4145
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.3.15.1
> Reporter: Jasper Rosenberg
> Assignee: Lukasz Lenart
> Labels: freemarker, tags, xhtml
> Fix For: 2.3.16
>
> Attachments: ThemeExpansion-Alt.patch, ThemeExpansion.patch
>
>
> Should use $\{parameters.theme} instead so can be used in theme extension.
> {code}
> <#include "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl"
> />
> <#include "/${parameters.templateDir}/simple/file.ftl" />
> <#include "/${parameters.templateDir}/${parameters.theme}/controlfooter.ftl"
> />
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)