Interface SoyNamingMapProvider


public interface SoyNamingMapProvider
Specifies an interface that provides renaming maps for CSS and XID calls in Soy templates.
Since:
1.3.0
Author:
Sam Gammon
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable com.google.template.soy.shared.SoyCssRenamingMap
    Provide an optional Soy renaming map for CSS class calls.
    default @Nullable com.google.template.soy.shared.SoyIdRenamingMap
    Provide an optional Soy ID renaming map for CSS IDs.
  • Method Details

    • cssRenamingMap

      @Nullable default @Nullable com.google.template.soy.shared.SoyCssRenamingMap cssRenamingMap()
      Provide an optional Soy renaming map for CSS class calls. Default implementation just returns `null`, which opts- out of CSS class renaming.
      Returns:
      CSS renaming map.
    • idRenamingMap

      @Nullable default @Nullable com.google.template.soy.shared.SoyIdRenamingMap idRenamingMap()
      Provide an optional Soy ID renaming map for CSS IDs. Default implementation just returns `null`, which opts-out of XID renaming.
      Returns:
      XID renaming map.