org.spincast.website.AppPebbleTemplatingEngineConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
The newest version!
package org.spincast.website;
import org.spincast.core.config.ISpincastConfig;
import org.spincast.plugins.pebble.SpincastPebbleTemplatingEngineConfigDefault;
import org.spincast.website.pebble.AppPebbleExtension;
import com.google.inject.Inject;
import com.mitchellbosecke.pebble.extension.Extension;
/**
* Custom Pebble plugin configurations.
*/
public class AppPebbleTemplatingEngineConfig extends SpincastPebbleTemplatingEngineConfigDefault {
private final AppPebbleExtension appPebbleExtension;
@Inject
public AppPebbleTemplatingEngineConfig(AppPebbleExtension appPebbleExtension,
ISpincastConfig spincastConfig) {
super(spincastConfig);
this.appPebbleExtension = appPebbleExtension;
}
@Override
public Extension getExtension() {
//==========================================
// Our custom Pebble extension.
//==========================================
return this.appPebbleExtension;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy