0

I have many text files I want to use as a velocity template but the actual notation for the variable is : {my_variable_x}.

In Velocity template by defaut it will be like this: $my_variable_x

Is there a way to configure velocity to use a different notation than the classic $variable?

I read the user's guide and developer's guide but did not find anything related to my problem.

рüффп
  • 5,172
  • 34
  • 67
  • 113

1 Answers1

1

There's no easy way of doing that other than checking out the sources, changing the grammar file, building the modified engine, and deploying the resulting custom jar.

Sergiu Dumitriu
  • 11,455
  • 3
  • 39
  • 62
  • Ok it is overkill for what we want, a linux sed command will transform the source templates to velocity. Thanks anyway for your answer. – рüффп Jul 16 '13 at 07:30