java.lang.Object
io.jstach.opt.spring.example.SpringTemplateConfig
Configures JStachio Spring style.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe JMustache plugin to render templates while editing in development mode.jstachio
(List<JStachioExtension> services) Creates jstachio from found pluginsjstachioService
(org.springframework.core.env.Environment environment, List<Template<?>> templates) Creates a services based on spring objects.
-
Constructor Details
-
SpringTemplateConfig
public SpringTemplateConfig()Do nothing constructor to placate jdk 18 javadoc
-
-
Method Details
-
jstachioService
@Bean public SpringJStachioExtension jstachioService(org.springframework.core.env.Environment environment, List<Template<?>> templates) Creates a services based on spring objects.- Parameters:
environment
- used for configtemplates
- found templates via component scanning- Returns:
- the services
-
jstachio
Creates jstachio from found plugins- Parameters:
services
- plugins- Returns:
- spring version fo jstachio
-
jmustache
The JMustache plugin to render templates while editing in development mode.- Returns:
- jmustache plugin
-