spark.template.rocker.RockerTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-template-rocker Show documentation
Show all versions of spark-template-rocker Show documentation
Rocker Template Engine implementation for Spark
The newest version!
package spark.template.rocker;
import com.fizzed.rocker.runtime.DefaultRockerModel;
import spark.ResponseTransformer;
/**
*/
public class RockerTransformer implements ResponseTransformer {
/**
* {@inheritDoc}
*/
@Override
public String render(final Object o) throws Exception {
return ((DefaultRockerModel) o).render().toString();
}
}