Getting Started
Core
Relational Databases
NoSQL Databases
Cache
Internationalization
REST Client
Scheduler
Sendmail
Template
Virtual File Storage
Web
Testing
Advanced
To generate HTML document with FreeMarker
, you have to use the module voidframework-template-freemarker
.
<dependency>
<groupId>dev.voidframework</groupId>
<artifactId>voidframework-template-freemarker</artifactId>
<version>1.16.0</version>
</dependency>
By default, templates should be placed in the resources/views
directory.
The following configuration keys can be used in the configuration file of your application:
voidframework.template.basePackagePath
the location of the templates. The default value is "/views/"
.By default, modules web
and template-freemarker
provide a set of methods and variables that will be accessible in templates.
Method | Description |
---|---|
config | Retrieves a value from the configuration |
displaySize | Displays a formatted number with the correct unit (Kio, Mio, Gio, …) |
i18n / _ | Translates a message |
urlfor | Retrieves an URL from the router (reverse router) |
Variable | Description |
---|---|
isDevMode | Indicates whether the application is in dev mode |
lang | Contains the current language |
languages | Contains all available languages |
voidFrameworkVersion | Contains the current Void Framework version |