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