io.quarkus.qute.runtime.PropertyNotFoundOutputExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-qute Show documentation
Show all versions of quarkus-qute Show documentation
Offer templating support for web, email, etc in a build time, type-safe way
package io.quarkus.qute.runtime;
import io.quarkus.qute.Expression;
import io.quarkus.qute.ResultMapper;
import io.quarkus.qute.Results;
import io.quarkus.qute.TemplateNode.Origin;
class PropertyNotFoundOutputOriginal implements ResultMapper {
@Override
public int getPriority() {
return 10;
}
@Override
public boolean appliesTo(Origin origin, Object result) {
return Results.isNotFound(result);
}
@Override
public String map(Object result, Expression expression) {
return "{" + expression.toOriginalString() + "}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy