1 package net.pterodactylus.sone.main;
3 import net.pterodactylus.util.template.Template;
4 import net.pterodactylus.util.template.TemplateProvider;
5 import net.pterodactylus.util.web.Page;
6 import net.pterodactylus.util.web.Request;
8 import com.google.inject.ImplementedBy;
11 * Defines loaders for resources that can be loaded from various locations.
13 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
15 @ImplementedBy(DefaultLoaders.class)
16 public interface Loaders {
18 Template loadTemplate(String path);
19 <REQ extends Request> Page<REQ> loadStaticPage(String basePath, String prefix, String mimeType);
20 TemplateProvider getTemplateProvider();