jatl
jatl copied to clipboard
Custom "data-*" atrribute
I am trying to include different "data-" attributes in my code, but I don't know where to start. I thought about modifying the function
public T data(String value) { return attr("data", value); }
in GeneratedHtmlBuilder.java. It would be something like:
public T data(String custom, String value) { return attr("data-" + custom, value); }
Is this the correct approach ?