package com.hectorlopezfernandez.pebblestripes;

import javax.servlet.ServletConfig;

import com.mitchellbosecke.pebble.PebbleEngine;
import com.mitchellbosecke.pebble.loader.ClasspathLoader;
import com.mitchellbosecke.pebble.loader.Loader;

public class CustomPebbleServlet extends PebbleServlet {

	protected void configureEngine(PebbleEngine.Builder builder, ServletConfig servletConfig) {
		Loader<String> l = new ClasspathLoader();
		builder.loader(l);
	}

	protected String parseTemplatePath(String servletPath) {
		if (servletPath.startsWith("/")) servletPath = servletPath.substring(1);
		return servletPath;
	}

}
@@ -80,16 +80,111 @@
 Config;%0D
+%0Aimport javax.servlet.http.HttpServletRequest;%0D%0Aimport javax.servlet.http.HttpServletResponse;%0D
 %0A%0D%0Aimpor
@@ -394,24 +394,36 @@
 ervlet %7B%0D%0A%0D%0A
+%09@Override%0D%0A
 %09protected v
@@ -577,16 +577,28 @@
 %0D%0A%09%7D%0D%0A%0D%0A
+%09@Override%0D%0A
 %09protect
@@ -632,27 +632,86 @@
 (String 
-servletPath
+originalPath, HttpServletRequest request, HttpServletResponse response
 ) %7B%0D%0A%09%09i
@@ -713,23 +713,24 @@
 %0D%0A%09%09if (
-servlet
+original
 Path.sta
@@ -747,29 +747,31 @@
 %22)) 
-servletPath = servlet
+originalPath = original
 Path
@@ -795,23 +795,24 @@
 %09return 
-servlet
+original
 Path;%0D%0A%09

Fix tests that broke with latest change