genxgeek
genxgeek

Reputation: 13357

Freemarker template string util that can create n number of characters or from a string?

is there a string util can can do something like this

<#assign junk="repeatMe"/> ${string.utils.repeat(junk,2)}

OUTPUT: repeatMerepeatMe

Upvotes: 0

Views: 262

Answers (1)

ratherblue
ratherblue

Reputation: 2108

You can do something like this:

<#assign junk = "repeatMe" />

<#list 0..1 as x>${junk}</#list>

Upvotes: 1

Related Questions