Instant FreeMarker Starter

Structure your enterprise-class projects with FreeMarker!

Instant FreeMarker Starter

This ebook is included in a Mapt subscription
Charles Forsythe

Structure your enterprise-class projects with FreeMarker!
$0.00
$7.50
$29.99p/m after trial
RRP $14.99
Subscription
eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782163824
Paperback64 pages

Book Description

Generating completed text documents by filling in blanks on a template is as old as printing, but this simple and straightforward approach to creating web pages and other computer-generated text using FreeMarker has only recently begun to gain popularity.

Instant FreeMarker Starter uses hands-on, real-world examples to show how to master its features, integrate with your web application framework, and effectively incorporate a template engine into your next enterprise project.

This guide gets you started quickly, showing you how you can begin using FreeMarker in less than a dozen lines of code. From there, it covers key features and shows you how FreeMarker integrates with popular MVC frameworks.
The core of the book walks you through the development of a program that generates a monthly newsletter from a complex data model. Along the way, you will learn strategies for organizing your FreeMarker logic in large enterprise projects. After covering the capabilities of FreeMarker, the book will show you how to integrate it with popular web application frameworks.
In short, the book will take your novice experience with FreeMarker to a level wherein you will create your own FreeMarker-based project.

Table of Contents

Chapter 1: Instant FreeMarker Starter
So, what is FreeMarker?
Installing FreeMarker
Quick start – creating your first template
Top 9 features you need to know about
People and places you should get to know

What You Will Learn

  • Load and process templates
  • How expressions access a data model
  • Create and use macros and functions
  • Control the formatting of different data types
  • Handle errors and missing data
  • Loop over repeating content
  • Control complexity by breaking templates into fragments and libraries
  • Regulate output with logical operations and conditionals
  • Use JUnit to test your templates
  • Integrate with frameworks such as Struts2 and Spring
  • Migrate from legacy JSP technology

Authors

Table of Contents

Chapter 1: Instant FreeMarker Starter
So, what is FreeMarker?
Installing FreeMarker
Quick start – creating your first template
Top 9 features you need to know about
People and places you should get to know

Book Details

ISBN 139781782163824
Paperback64 pages
Read More

Read More Reviews