Class SoyTemplateUtils


  • public final class SoyTemplateUtils
    extends java.lang.Object
    Helper methods for rendering Soy templates from Java code.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.google.common.base.Supplier<com.google.template.soy.shared.SoyCssRenamingMap> CSS_RENAMING_MAP_SUPPLIER  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.common.base.Supplier<com.google.template.soy.shared.SoyCssRenamingMap> createCssRenamingMapSupplier​(java.net.URL cssMap, java.net.URL cssMapDebug)
      Returns a memoized supplier of the thing you pass to setCssRenamingMap().
      static com.google.common.base.Supplier<com.google.template.soy.tofu.SoyTofu> createTofuSupplier​(com.google.template.soy.parseinfo.SoyFileInfo... soyInfos)
      Returns a memoized supplier containing compiled tofu.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CSS_RENAMING_MAP_SUPPLIER

        public static final com.google.common.base.Supplier<com.google.template.soy.shared.SoyCssRenamingMap> CSS_RENAMING_MAP_SUPPLIER
    • Method Detail

      • createTofuSupplier

        public static com.google.common.base.Supplier<com.google.template.soy.tofu.SoyTofu> createTofuSupplier​(com.google.template.soy.parseinfo.SoyFileInfo... soyInfos)
        Returns a memoized supplier containing compiled tofu.
      • createCssRenamingMapSupplier

        public static com.google.common.base.Supplier<com.google.template.soy.shared.SoyCssRenamingMap> createCssRenamingMapSupplier​(java.net.URL cssMap,
                                                                                                                                     java.net.URL cssMapDebug)
        Returns a memoized supplier of the thing you pass to setCssRenamingMap().