Package freemarker.core
Class CommandLine
java.lang.Object
freemarker.core.CommandLine
FreeMarker command-line utility, the Main-Class of freemarker.jar.
If invoked with no parameters it just prints the version number.
If you invoke it with the filename, it reads int the file as a template
and processes it with an empty data model, sending the output to stdout.
Note that this command-line utility mostly exists as a convenient entry
point for debugging/testing when setting up a development environment.
For a serious freemarker-based command-line file processing tool we recommend
FMPP.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinfo()static voidstatic voidprocessTemplate(String filename) processes template with an empty data model
-
Constructor Details
-
CommandLine
public CommandLine()
-
-
Method Details
-
main
-
processTemplate
processes template with an empty data model- Parameters:
filename- name of file- Throws:
IOExceptionTemplateException
-
info
public static void info()
-