### Configure Velocity Engine with Spring Source: https://github.com/apache/velocity-engine/blob/master/spring-velocity-support/README.md Use VelocityEngineFactoryBean to configure the Velocity engine within a Spring application context. This example sets up resource loaders to use the classpath. ```xml classpath org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader ``` -------------------------------- ### Velocity Template with Syntax Error Source: https://github.com/apache/velocity-engine/blob/master/velocity-engine-core/src/test/resources/includeerror/haserror.txt This Velocity template contains a syntax error because the #foreach directive is not properly closed. It is intentionally not saved with a .vm suffix to avoid IDE errors. ```velocity #foreach($i in (1..10) $i ``` -------------------------------- ### Velocity Macro with Error Source: https://github.com/apache/velocity-engine/blob/master/velocity-engine-core/src/test/resources/includeerror/haserror2.txt This Velocity macro definition contains a syntax error where the macro call is not properly closed. It is intended to showcase error reporting in Velocity, especially when the template file lacks a '.vm' extension. ```velocity #macro (myMacro $arg1 $list) This is text from velPTest2.vm #myMacro('name', ['apples', 'oranges'] More text ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.