package com.hectorlopezfernandez.pebblestripes;

import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

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

public class CustomPebbleServlet extends PebbleServlet {

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

	@Override
	protected String parseTemplatePath(String originalPath, HttpServletRequest request, HttpServletResponse response) {
		if (originalPath.startsWith("/")) originalPath = originalPath.substring(1);
		return originalPath;
	}

}
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;
	}

}
--- 
+++ 
@@ -1,6 +1,8 @@
 package com.hectorlopezfernandez.pebblestripes;
 
 import javax.servlet.ServletConfig;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
 
 import com.mitchellbosecke.pebble.PebbleEngine;
 import com.mitchellbosecke.pebble.loader.ClasspathLoader;
@@ -8,14 +10,16 @@
 
 public class CustomPebbleServlet extends PebbleServlet {
 
+	@Override
 	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;
+	@Override
+	protected String parseTemplatePath(String originalPath, HttpServletRequest request, HttpServletResponse response) {
+		if (originalPath.startsWith("/")) originalPath = originalPath.substring(1);
+		return originalPath;
 	}
 
 }
Fix tests that broke with latest change