Class SpincastDateFormatterPebbleExtensionDefault

java.lang.Object
com.mitchellbosecke.pebble.extension.AbstractExtension
org.spincast.plugins.dateformatter.SpincastDateFormatterPebbleExtensionDefault
All Implemented Interfaces:
com.mitchellbosecke.pebble.extension.Extension, SpincastDateFormatterPebbleExtension

public class SpincastDateFormatterPebbleExtensionDefault extends com.mitchellbosecke.pebble.extension.AbstractExtension implements SpincastDateFormatterPebbleExtension
  • Field Details

  • Constructor Details

    • SpincastDateFormatterPebbleExtensionDefault

      @Inject public SpincastDateFormatterPebbleExtensionDefault(DateFormatterFactory dateFormatterFactory)
  • Method Details

    • getDateFormatterFactory

      protected DateFormatterFactory getDateFormatterFactory()
    • getFilters

      public Map<String,com.mitchellbosecke.pebble.extension.Filter> getFilters()
      Specified by:
      getFilters in interface com.mitchellbosecke.pebble.extension.Extension
      Overrides:
      getFilters in class com.mitchellbosecke.pebble.extension.AbstractExtension
    • getDateFormatFilterName

      protected String getDateFormatFilterName()
    • getDateFormatFilter

      protected com.mitchellbosecke.pebble.extension.Filter getDateFormatFilter()
    • formatUsingRelativeFormatter

      protected Object formatUsingRelativeFormatter(Object dateObj, Map<String,Object> args)
    • formatUsingStandardFormatter

      protected String formatUsingStandardFormatter(Object dateObj, Map<String,Object> args)