Class VuiTextTagProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor
io.vertigo.ui.impl.thymeleaf.components.VuiTextTagProcessor
- All Implemented Interfaces:
org.thymeleaf.processor.element.IElementProcessor,org.thymeleaf.processor.element.IElementTagProcessor,org.thymeleaf.processor.IProcessor
public class VuiTextTagProcessor
extends org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor
Tag processor to add v-pre VueJS directive on nodes that are only text nodes to prevent template evaluation on client side (XSS protection)
It is mainly the
StandardTextTagProcessor with the addition of the v-pre attribute
Simply use vu:text instead of th:text to enable the behaviour- Author:
- mlaroche
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, Object expressionResult, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler) Methods inherited from class org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, processMethods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
Field Details
-
PRECEDENCE
public static final int PRECEDENCE- See Also:
-
ATTR_NAME
- See Also:
-
-
Constructor Details
-
VuiTextTagProcessor
-
-
Method Details
-
doProcess
protected void doProcess(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, Object expressionResult, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler) - Specified by:
doProcessin classorg.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor
-