X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fthymeleaf%2FInactiveAttributeProcessor.java;fp=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fthymeleaf%2FInactiveAttributeProcessor.java;h=c212aa0a9ceb87e313405f944ec0cca7b236161c;hb=8ecd49f95b2af21c0a546007edc4e3d5346e7356;hp=0000000000000000000000000000000000000000;hpb=2ebd13014f98d349aa147185dac2dd860fccf225;p=juplo-dialect diff --git a/src/main/java/de/juplo/thymeleaf/InactiveAttributeProcessor.java b/src/main/java/de/juplo/thymeleaf/InactiveAttributeProcessor.java new file mode 100644 index 0000000..c212aa0 --- /dev/null +++ b/src/main/java/de/juplo/thymeleaf/InactiveAttributeProcessor.java @@ -0,0 +1,15 @@ +package de.juplo.thymeleaf; + + +/** + * Replaces the element by the tag <span>, if it is + * marked as inactive. + * @author Kai Moritz + */ +public class InactiveAttributeProcessor extends AbstractSubstituteAttributeProcessor +{ + public InactiveAttributeProcessor(String prefix) + { + super(prefix, "inactive", "span"); + } +}