类 RenderingContext


  • public class RenderingContext
    extends Object
    Context passed to ScriptTemplateView render function in order to make the application context, the locale, the template loader and the url available on scripting side.
    从以下版本开始:
    5.0
    作者:
    Sebastien Deleuze
    • 构造器详细资料

      • RenderingContext

        public RenderingContext​(ApplicationContext applicationContext,
                                Locale locale,
                                Function<String,​String> templateLoader,
                                String url)
        Create a new RenderingContext.
        参数:
        applicationContext - the application context
        locale - the locale of the rendered template
        templateLoader - a function that takes a template path as input and returns the template content as a String
        url - the URL of the rendered template