Hi. I'm a new Sling user. I wanted to use Velocity with Sling, and so I built the module in sling/contrib/scripting/velocity. I added three OSGi bundles:
* org.apache.sling.api-2.1.1-SNAPSHOT.jar * org.apache.sling.scripting.api-2.1.1-SNAPSHOT.jar * org.apache.sling.scripting.velocity-2.0.0-SNAPSHOT.jar No problem! It worked great and I can use the Velocity templating language for my scripts/templates. However, I'd like to now take this a step further and add a few additional scripting variables, as discussed here: https://cwiki.apache.org/SLING/adding-new-scripting-variables.html So I want to create a class which implements the BindingsValuesProvider interface. OK... but what do I do with it once I create it? How do I configure Sling to use the class when evaluating a Velocity script? Does the class need to actually be included with the Velocity OSGi bundle? Or can it be separate (say for example I want the new variables to be available to both Velocity and JSP scripts)? Thanks for any pointers, --David ** This e-mail message is intended only for the designated recipient(s) named above. The information contained in this e-mail and any attachments may be confidential or legally privileged. If you are not the intended recipient, you may not review, retain, copy, redistribute or use this e-mail or any attachment for any purpose, or disclose all or any part of its contents. If you have received this e-mail in error, please immediately notify the sender by reply e-mail and permanently delete this e-mail and any attachments from your computer system.
