Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Custom template processor implementation


Now that we have had a detailed technical walkthrough on the script processor implementation in the web script framework, it's now time to do some exercise to find out how template processor implementation is done in the web script framework and how to create a custom implementation for template processor. You should now be able to trace through the code to find out how the FreeMarker template processor is used by the web script framework and how you can create a custom template processor implementation. Here is a hint for you in order to do this exercise. In order to understand about template processor implementation, you just need to take a look at the bean entry for org.springframework.extensions.webscripts.ScriptProcessorRegistrar in web-scripts-application-context.xml and trace through the code the way we did in the previous section; you should get an overall understanding about template processor implementation and details of creating a custom...