HTL Introduction

HTL Intro

The HTML Template Language (HTL) provides separation of concerns between the logic and the markup. Compared to JSP , HTL provides good security model and ensures project efficiency. HTL has powerful extension mechanisms for reuse of logic and of mark-up.

The HTML Template Language comprises of

i). Expression language: Used to insert pieces of content into the rendered markup.
ii). Block statements : Used to define statements over blocks of markup (conditions/iterations)

HTL is strict so that it does not allow to mix code inside the markup. HTL uses the 'Use-API extension' technique to easily execute code from the HTL template.

Common and recommended method is to write business logic in Java.In case the component needs some view-specific changes from what the Java API provide, it is recommended to use server-side executed JavaScript.

Advantages:
Increased Security
HTL gets compiled into Java Servlets, during this process the expressions and the HTL data attributes are both evaluated entirely server-side, thus the view source option of HTML page does not show anything.

Reduced Costs
HTL Provides increased security, simplified development and improved team collaboration, faster time to market (TTM), reduced effort and lower total cost of ownership (TCO).

Simplified Development
The HTML Template Language is easy to learn for a developer who knows basic HTML and its syntax and features are purposely limited to ensure that it stays simple and straight-forward.

Go to HTL Tutorial Home page

No comments:

Post a Comment