Discussion:
[FreeMarker-user] Help please, first time using for Java template...
Mannyp7
2013-07-17 12:32:59 UTC
Permalink
I am using NetBeans and I am trying to make a template for a java class, I
was
So the normal variables work like:
${date},${encoding},${name},${nameAndExt},${package},${time},${user},${project.license},${project.name},${project.displayName}

But the ones like these built-ins are undefined?
${openingTime?string.short}${openingTime?string.medium}${openingTime?string.long}${openingTime?string.full}

And the first set are the only ones that work, does anyone know a list of
all variables and how to get the second set to work?



--
View this message in context: http://freemarker.624813.n4.nabble.com/Help-please-first-time-using-for-Java-template-tp4654646.html
Sent from the freemarker-user mailing list archive at Nabble.com.
Daniel Dekany
2013-07-17 21:29:38 UTC
Permalink
Post by Mannyp7
I am using NetBeans and I am trying to make a template for a java class, I
was
${date},${encoding},${name},${nameAndExt},${package},${time},${user},${project.license},${project.name},${project.displayName}
But the ones like these built-ins are undefined?
${openingTime?string.short}${openingTime?string.medium}${openingTime?string.long}${openingTime?string.full}
And the first set are the only ones that work, does anyone know a list of
all variables and how to get the second set to work?
If those templates are indeed FreeMarker templates then the built-ins
should work. They can't be disabled or something like that. What error
message do you get?
--
Thanks,
Daniel Dekany
Continue reading on narkive:
Loading...