[ 
https://issues.apache.org/jira/browse/TAMAYA-220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15823261#comment-15823261
 ] 

ASF subversion and git services commented on TAMAYA-220:
--------------------------------------------------------

Commit 8158d464d518252f7e593a0511bd469d5545b709 in incubator-tamaya-site's 
branch refs/heads/asf-site from [~hugo.hirsch]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-tamaya-site.git;h=8158d46 
]

TAMAYA-220: Delete regenerated stuff before republishing.


> 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
> Does not yet support variables - need to move templates to Asciidoc in order 
> to use variables!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to