Class ADocHelpers.AnchorHelper

java.lang.Object
io.micrometer.docs.commons.templates.ADocHelpers.AnchorHelper
All Implemented Interfaces:
com.github.jknack.handlebars.Helper<String>
Enclosing class:
ADocHelpers

public static class ADocHelpers.AnchorHelper extends Object implements com.github.jknack.handlebars.Helper<String>
A helper class to generate unique anchor values. When this helper receives the same value multiple times, it appends a suffix to the anchor value to make it unique. The suffix takes the form of "-1", "-2", and so on, incrementing with each occurrence.
  • Constructor Details

    • AnchorHelper

      public AnchorHelper()
  • Method Details

    • apply

      public Object apply(String context, com.github.jknack.handlebars.Options options) throws IOException
      Specified by:
      apply in interface com.github.jknack.handlebars.Helper<String>
      Throws:
      IOException