I would like to parse Velocity templates using Apache Velocity runtime engine line by line with java. I mean, I would like evaluate each one of the lines of the velocity script, getting the answer for that single line, if any, as an input to another task. This other task will process the input and will send it's output to the Velocity script that may use it or not.
How can I stablish this runtime dialog betwen the Velocity engine and the other task?