Skip to content

severell/severell-jte-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JTE Plugin for Severell

Installation

Add the following dependency to your pom.xml

<dependency>
    <groupId>com.severell.plugins</groupId>
    <artifactId>jte</artifactId>
    <version>0.0.2/version>
</dependency>

Then in your providers.java you'll need to add the JteProvider.java. The provider list should look something like this. Don't copy and paste this. It might be missing some providers. Just add the JteProvider.java after ViewProvider.java.

    public static ServiceProvider[] load(Container c) {
        return new ServiceProvider[]{
                new AppProvider(c),
                new JettyProvider(c),
                new SessionProvider(c),
                new ViewProvider(c),
                new JteProvider(c),
                new MailProvider(c),
                new RouteProvider(c),
        };
    }

Finally in your .env file you'll need to add the following variable.

VIEW_DRIVER=Jte

Usage

Now in your controller files you can render your Jte templates.

resp.render("index.jte", new HashMap<String, Object>());

About

JTE plugin for Severell Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published