
com.commercetools.sunrise.framework.template.engine.ContentRenderer Maven / Gradle / Ivy
The newest version!
package com.commercetools.sunrise.framework.template.engine;
import com.commercetools.sunrise.framework.viewmodels.content.PageContent;
import com.google.inject.ImplementedBy;
import play.twirl.api.Content;
import javax.annotation.Nullable;
import java.util.concurrent.CompletionStage;
@ImplementedBy(PageHtmlContentRenderer.class)
public interface ContentRenderer {
CompletionStage render(final PageContent pageContent, @Nullable final String templateName, @Nullable final String cmsKey);
default CompletionStage render(final PageContent pageContent, @Nullable final String templateName) {
return render(pageContent, templateName, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy