Package freemarker.core
Class CommandLine
- java.lang.Object
-
- freemarker.core.CommandLine
-
public class CommandLine extends Object
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 Constructor Description CommandLine()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinfo()static voidmain(String[] args)static voidprocessTemplate(String filename)processes template with an empty data model
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
processTemplate
public static void processTemplate(String filename) throws IOException, TemplateException
processes template with an empty data model- Parameters:
filename- name of file- Throws:
IOExceptionTemplateException
-
info
public static void info()
-
-