It is a Java package, a class library for Java programmers. It is not an application for end users in itself, but rather allows programmers to embed it in their products. Freemarker is designed to generate HTML Web pages, especially applications based on the MVC (model View Controller) pattern. The idea of using the MVC pattern as a Dynamic Web page is to separate the page designer (HTML Designer) from the programmer: Everyone does the part that they are good at. Designers can change the way the page looks without changing or modifying the code, because the application logic (Java program) and the page design (freemarker template) are separate. Templates are not broken by complex, cumbersome program frameworks. This separation is useful even when the programmer of a project and the creator of the HIMTL page are the same person, because it helps keep the application clear and easy to maintain. Although Freemarker has some programming capabilities, it is not a mature programming language like PHP. Unlike Java, where Java programs prepare data for display (such as SQL queries), Freemarker only generates a text page that displays the preliminary data for the template. Freemarker is not a Web application framework and is better suited to act as a component in a Web application framework, but the Freemarker engine itself does not care about HTTP or servlets, it is simply generating text. It also shows the perfect use in a non-web application environment. However, it is worth noting that we provide a convenient solution for using freemarker, and as a view component of the MODEL2 framework (such as struts), you can also use JSP tags in the template. Freemarker is free and has bsd-style Licenseservlet running in java-enabled Web server. Java Servlets can dynamically extend the capabilities of the server and provide Web services in a request-response pattern. The first to support servlet technology is the JavaSoft Java Web Server. Since then, some other Java-based Web servers have started to support the standard
What is Freemaker