What file is FTL file Freemaker

Source: Internet
Author: User
Tags html form
Freemarker files generally after the prefix FTL,FTL file on the head to write
< #assign ww=jsptaglibs["/web-inf/webwork.tld"]/>
In order to use the webwork tag in FTL.

Freemarker is really a good template language engine, especially for working with object graphs, easy to process XML, and support for XPath

What is Freemarker.

Freemarker is a templating engine, a text-based template output tool (generates arbitrary HTML form code). It is a Java package, a class library for Java programmers. It is not intended for end user applications, but rather allows programmers to embed them 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 look of a Web page without the programmer changing or modifying the code, because the application logic (Java program) and the page design (freemarker template) are separate. Templates are not corrupted by complex, cumbersome program frameworks. This separation is useful even when the programmer of a project is the same person as the creator of the HIMTL page, 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, Java programs prepare data for display (such as SQL queries), while Freemarker only generates text pages that display preliminary data for the template.

Freemarker is not a Web application framework, but rather a role for a component in a Web application framework, but the Freemarker engine itself does not care about HTTP or servlets, it simply generates text. It can also show the perfect use in a non-WEB application environment. However, it is worth noting that we provide a convenient solution for using Freemarker as a view component of the MODEL2 framework (such as Struts), and you can also use JSP tags in templates.

Freemarker is free of charge and has bsd-style license. It is an open source software that is certified by OSI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.