Class SpringTemplateConfig

java.lang.Object
io.jstach.opt.spring.example.SpringTemplateConfig

@Configuration public class SpringTemplateConfig extends Object
Configures JStachio Spring style.
  • Constructor Details

    • 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 config
      templates - found templates via component scanning
      Returns:
      the services
    • jstachio

      @Bean public SpringJStachio jstachio(List<JStachioExtension> services)
      Creates jstachio from found plugins
      Parameters:
      services - plugins
      Returns:
      spring version fo jstachio
    • jmustache

      @Bean public JStachioExtension jmustache()
      The JMustache plugin to render templates while editing in development mode.
      Returns:
      jmustache plugin