Jet is the template engine for Jaskell.
A Jet file is just a jaskell expression file that evaluates to a string. Templating is done by using jaskell string interpolation.
Data model, servlet request, servlet response, servlet session are visible to the page as regular variables.
Because Jet file is a regular jaskell expression, functions can be defined to reuse presentation logic.
Some predefined functions are available to make authoring html easy.
The following is an example jet file:
Given a data model where title as "Book List" and books as a list of [Learning Jaskell, Jet & JSP], the result html will become:
Class Jet is used to enable Jet support.
Custom Resolver can be built to make application scope, session scope, request scope variables and other data model visible to the Jet page.
