Class SpringExtension

java.lang.Object
io.pebbletemplates.pebble.extension.AbstractExtension
io.pebbletemplates.spring.extension.SpringExtension
All Implemented Interfaces:
io.pebbletemplates.pebble.extension.Extension

public class SpringExtension extends io.pebbletemplates.pebble.extension.AbstractExtension

Extension for PebbleEngine to add spring functionality

Author:
Eric Bussieres
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringExtension(org.springframework.context.MessageSource messageSource)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,io.pebbletemplates.pebble.extension.Function>
     

    Methods inherited from class io.pebbletemplates.pebble.extension.AbstractExtension

    getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpringExtension

      public SpringExtension(org.springframework.context.MessageSource messageSource)
  • Method Details

    • getFunctions

      public Map<String,io.pebbletemplates.pebble.extension.Function> getFunctions()
      Specified by:
      getFunctions in interface io.pebbletemplates.pebble.extension.Extension
      Overrides:
      getFunctions in class io.pebbletemplates.pebble.extension.AbstractExtension