Httl Open source Java template engine, Dynamic HTML page output

Source: Internet
Author: User

HTTL (hyper-text template Language) is an open source Java template engine for HTML output for Dynamic HTML page output that can be used instead of a JSP page whose instructions resemble velocity.
Httl uses a similar JSP-like principle to compile the template into Java bytecode, but it is much further than the JSP El, using strongly typed derivation to reduce run-time reflection and transformation, faster.

By default, Httl does not need to rely on any of the three-party libraries to run.

Binary Package Source Code Package SOURCE Warehouse
Httl Core Pack Httl-1.0.11.jar Httl-1.0.11-sources.jar httl-1.0.11
Script Integration Pack Httl-script-1.0.11.jar Httl-script-1.0.11-sources.jar httl-script-1.0.11
Servlet Integration Pack Httl-servlet-1.0.11.jar Httl-servlet-1.0.11-sources.jar httl-servlet-1.0.11
SPRINGMVC Integration Pack Httl-springmvc-1.0.11.jar Httl-springmvc-1.0.11-sources.jar httl-springmvc-1.0.11
Struts Integration Pack Httl-struts-1.0.11.jar Httl-struts-1.0.11-sources.jar httl-struts-1.0.11
WEBX Integration Pack Httl-webx-1.0.11.jar Httl-webx-1.0.11-sources.jar httl-webx-1.0.11
Jfinal Integration Pack Httl-jfinal-1.0.11.jar Httl-jfinal-1.0.11-sources.jar httl-jfinal-1.0.11
Nutz Integration Pack Httl-nutz-1.0.11.jar Httl-nutz-1.0.11-sources.jar httl-nutz-1.0.11
Binary Package Source Code Package SOURCE Warehouse
servlet Example Httl-servlet-demo-1.0.11.war Httl-servlet-demo-1.0.11.zip httl-servlet-demo-1.0.11
SPRINGMVC Example Httl-springmvc-demo-1.0.11.war Httl-springmvc-demo-1.0.11.zip httl-springmvc-demo-1.0.11
Struts Example Httl-struts-demo-1.0.11.war Httl-struts-demo-1.0.11.zip httl-struts-demo-1.0.11
jfinal Example Httl-jfinal-demo-1.0.11.war Httl-jfinal-demo-1.0.11.zip httl-jfinal-demo-1.0.11
Nutz Example Httl-nutz-demo-1.0.11.war Httl-nutz-demo-1.0.11.zip httl-nutz-demo-1.0.11

Maven Dependency

Published to Maven Central Library: http://central.maven.org/maven2/com/github/httl/

12345678910111213141516171819202122232425262728293031323334353637383940414243444546 <project>    <dependencies>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl</artifactId>            <version>1.0.11</version>        </dependency>        <!--        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-script</artifactId>            <version>1.0.11</version>        </dependency>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-servlet</artifactId>            <version>1.0.11</version>        </dependency>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-springmvc</artifactId>            <version>1.0.11</version>        </dependency>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-struts</artifactId>            <version>1.0.11</version>        </dependency>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-webx</artifactId>            <version>1.0.11</version>        </dependency>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-jfinal</artifactId>            <version>1.0.11</version>        </dependency>        <dependency>            <groupId>com.github.httl</groupId>            <artifactId>httl-nutz</artifactId>            <version>1.0.11</version>        </dependency>        -->    </dependencies><project>

Run the sample

Put the war pack into: Tomcat/webapps/httl-springmvc-demo-1.0.11.war, and start Tomcat,
Then visit: http://localhost:8080/httl-springmvc-demo-1.0.11

Source Generation Warehouse

You can import the MVC Integration sample source in the same way.

Download Skeleton Source code:

12 git clone https://github.com/httl/httl.gitcd httl
    • Https://github.com/httl/httl
    • Https://github.com/httl/httl-demo

Alternatively, download each version of the tag package directly and unzip it:

123 wget https://github.com/httl/httl/archive/1.0.11.zipunzip httl-1.0.11.zip -d httl-1.0.11cd httl-1.0.11
    • Https://github.com/httl/httl/tags
    • Https://github.com/httl/httl-demo/tags

Compile the source code:

1 mvn install -Dmaven.test.skip

To generate an Eclipse Engineering profile:

1 mvn eclipse:eclipse -DdownloadSources

Import Eclipse Project:

Existing Projects into Workspace---Finished, Import, File, Eclipse

Open the. httl file in the HTML editor format:

Preferences, General, Content Types, Text, Windows---------------*.httl

Install the MAVEN command line: (to support the MVN command above)

Linux:

123 wget http://www.apache.org/dist//maven/binaries/apache-maven-2.2.1-bin.tar.gztar zxvf apache-maven-2.2.1-bin.tar.gzexport PATH=$PATH:apache-maven-2.2.1/bin

Windows:

123 下载 http://www.apache.org/dist//maven/binaries/apache-maven-2.2.1-bin.tar.gz解压 apache-maven-2.2.1-bin.tar.gz桌面 -> 我的电脑 -> 右键菜单 -> 系统属性 -> 高级 -> 环境变量 -> 在PATH变量中加入apache-maven-2.2.1/bin目录。

Httl Open source Java template engine, Dynamic HTML page output

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.