Package liqp.filters
Class Relative_Url
java.lang.Object
liqp.LValue
liqp.filters.Filter
liqp.filters.Relative_Url
- Direct Known Subclasses:
Absolute_Url
This filter requires
baseurl parameter
that will be used as base for building relative url.-
Field Summary
FieldsFields inherited from class liqp.LValue
BREAK, CONTINUE, rubyDateTimeFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Object value, TemplateContext context, Object... params) Applies the filter on the 'value', with the given 'context'.protected StringgetRelativeUrl(TemplateContext context, String baseUrl, String valAsString) protected booleanisValidAbsoluteUrl(String valAsString) objectToMap(Object configRoot, TemplateContext context) Methods inherited from class liqp.LValue
areEqual, asAppendableObject, asArray, asBoolean, asFormattedNumber, asList, asMap, asNumber, asRubyDate, asStrictNumber, asString, asTemporal, canBeDouble, canBeInteger, canBeNumber, isArray, isBlank, isFalsy, isInteger, isMap, isNumber, isString, isTemporal, isTruthy, mapAsArray, temporalAsArray
-
Field Details
-
site
- See Also:
-
baseurl
- See Also:
-
-
Constructor Details
-
Relative_Url
public Relative_Url()
-
-
Method Details
-
apply
Description copied from class:FilterApplies the filter on the 'value', with the given 'context'. -
getRelativeUrl
-
objectToMap
-
isValidAbsoluteUrl
-