[
https://issues.apache.org/jira/browse/TAMAYA-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15819154#comment-15819154
]
ASF subversion and git services commented on TAMAYA-220:
--------------------------------------------------------
Commit 1d8ec27b0e8cf7d91fb59fd77cad9956cff203ba in incubator-tamaya-site's
branch refs/heads/master from [~hugo.hirsch]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-tamaya-site.git;h=1d8ec27
]
TAMAYA-220: Fix injection in thymeleaf
* Need to use the thymeleaf macros th:something and prefix config., a direct
injection is not supported.
> Bug: unable to inject custom variable in Thymeleaf and markdown templates
> -------------------------------------------------------------------------
>
> Key: TAMAYA-220
> URL: https://issues.apache.org/jira/browse/TAMAYA-220
> Project: Tamaya
> Issue Type: Sub-task
> Components: Website
> Reporter: Philipp Ottlinger
> Assignee: Philipp Ottlinger
> Fix For: 0.3-incubating
>
>
> The template `templates/menu.thyme` contains a reference to the generated
> javadoc and relies on the variable:
> {code}
> tamaya_version=0.3-incubating-SNAPSHOT
> {code}
> At the moment the variable is available in markdown/asciidoc pages, but not
> in Thymeleaf:
> https://github.com/jbake-org/jbake/issues/326
> Working:
> * (/) Asciidoc
> {code}
> jbake.properties:
> asciidoctor.attributes.export=true
> foo_version=0.1.2-SNAPSHOT
> example in adoc:
> <version>{foo_version}</version>
> {code}
> * (/) Thymeleaf
> {code}
> jbake.properties:
> foo_version=0.1.2-SNAPSHOT
> need to use Thymeleaf directives, a direct input into tags is not supported:
> th:text="'Javadoc '+ ${config.foo_version} +' (external)'"
> {code}
> * (x) Markdown
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)