Fork me on GitHub

ServletLoader

In package com.mitchellbosecke.pebble.loader

public class ServletLoader extends AbstractServletLoader

Loader that uses a servlet context to find templates.

Constructors

public ServletLoader(ServletContext context)
Parameters:
  • ServletContext context

Methods

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