All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liqp.filters.Prepend Maven / Gradle / Ivy

package liqp.filters;

import liqp.TemplateContext;

public class Prepend extends Filter {

    /*
     * (Object) append(input, string)
     *
     * add one string to another
     */
    @Override
    public Object apply(Object value, TemplateContext context, Object... params) {

        return super.asString(super.get(0, params), context) + super.asString(value, context);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy