O'Reilly logo

Instant FreeMarker Starter by Charles Forsythe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Quick start – creating your first template

In this chapter we'll write a small Java application that will process a template and send the results to the console. There are several goals to this exercise. The first is to get you up and running with FreeMarker quickly. The second is to provide a clear demonstration about what FreeMarker does by showing it in operation outside of any other application framework. Finally, you'll see how little effort is actually required to generate a working FreeMarker application.

Step 1 – setting up your development directory

If you haven't done so, create a directory to work in. I'm going to keep this as simple as possible, so we won't need a complicated directory structure. Everything can be done in one directory. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required