All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.templating.api.TemplateService Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.webpieces.templating.api;

import java.io.StringWriter;
import java.util.Map;
import java.util.Set;

import org.webpieces.ctx.api.extension.HtmlTagCreator;
import org.webpieces.templating.impl.ProdTemplateService;

import com.google.inject.ImplementedBy;

@ImplementedBy(ProdTemplateService.class)
public interface TemplateService {

	void loadAndRunTemplate(String templatePath, StringWriter out, Map pageArgs);

	/**
	 * Purely for tag use only.
	 * 
	 * we could hide this as strictly speaking, this is not for any webserver to call but for tags to use
	 */
	String loadAndRunTemplate(String templatePath, Map pageArgs, Map setTagProps);
	
	/**
	 * Special way to install more tags.  Development server calls this after recompiles to re-install tags
	 */
	void install(Set htmlCreators);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy