WIP:Ported app to Thymeleaf 3.0.x
[juplo-dialect] / src / main / java / de / juplo / thymeleaf / InactiveAttributeProcessor.java
diff --git a/src/main/java/de/juplo/thymeleaf/InactiveAttributeProcessor.java b/src/main/java/de/juplo/thymeleaf/InactiveAttributeProcessor.java
new file mode 100644 (file)
index 0000000..c212aa0
--- /dev/null
@@ -0,0 +1,15 @@
+package de.juplo.thymeleaf;
+
+
+/**
+ * Replaces the element by the tag <code>&lt;span&gt;</code>, if it is
+ * marked as inactive.
+ * @author Kai Moritz
+ */
+public class InactiveAttributeProcessor extends AbstractSubstituteAttributeProcessor
+{
+  public InactiveAttributeProcessor(String prefix)
+  {
+    super(prefix, "inactive", "span");
+  }
+}