groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Laforge <glafo...@gmail.com>
Subject Re: How to write groovy conditionals inside a groovy template
Date Thu, 29 Sep 2016 14:35:42 GMT
Hi Raviteja,

You can use plain if statements in those templates.

Guillaume

On Thu, Sep 29, 2016 at 4:34 PM, Raviteja Lokineni <
raviteja.lokineni@gmail.com> wrote:

> Hi,
>
> I am using Groovy templating engine inside a Spring Boot application which
> uses MarkupTemplateEngine
> <http://docs.groovy-lang.org/latest/html/documentation/template-engines.html#_the_markuptemplateengine>
> .
>
> I would like to know how to use a if/else block inside a template which
> will be consumed by MarkupTemplateEngine
> <http://docs.groovy-lang.org/latest/html/documentation/template-engines.html#_the_markuptemplateengine>
>
> Thanks,
> --
> *Raviteja Lokineni* | Business Intelligence Developer
> TD Ameritrade
>
> E: raviteja.lokineni@gmail.com
>
> [image: View Raviteja Lokineni's profile on LinkedIn]
> <http://in.linkedin.com/in/ravitejalokineni>
>
>


-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Mime
View raw message