jatl icon indicating copy to clipboard operation
jatl copied to clipboard

Custom "data-*" atrribute

Open vherasme opened this issue 8 years ago • 1 comments

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 ?

vherasme avatar May 30 '16 12:05 vherasme