[
https://issues.apache.org/jira/browse/TAMAYA-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Ottlinger updated TAMAYA-220:
-------------------------------------
Description:
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 '+ ${foo_version} +' (external)'"
{code}
* (x) Markdown
was:
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
> 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 '+ ${foo_version} +' (external)'"
> {code}
> * (x) Markdown
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)