Fork me on GitHub

Servlet5Loader

In package com.mitchellbosecke.pebble.loader

public class Servlet5Loader extends AbstractServletLoader

Loader that uses a servlet context to find templates. Requires Jakarta Servlet 5.0 or newer.

Constructors

public Servlet5Loader(ServletContext context)
Parameters:
  • ServletContext context

Methods

protected InputStream getResourceAsStream(String location)
Parameters:
  • String location
protected URL getResource(String location)
Parameters:
  • String location