ScriptTemplateView render function in order to make
the application context, the locale, the template loader and the url available on
scripting side.
| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationContext | |
| private final Locale | |
| private final Function | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | RenderingContext(ApplicationContext
the application context applicationContext, Locale the locale of the rendered template locale, Function<String, String> a function that takes a template path as input and returns
the template content as a String templateLoader, String the URL of the rendered template url)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public ApplicationContext | |
| public Locale | |
| public Function | getTemplateLoader()
Return a function that takes a template path as input and returns the template content as a String. |
| public String |
| applicationContext | back to summary |
|---|---|
| private final ApplicationContext applicationContext | |
| locale | back to summary |
|---|---|
| private final Locale locale | |
| templateLoader | back to summary |
|---|---|
| private final Function<String, String> templateLoader | |
| url | back to summary |
|---|---|
| private final String url | |
| RenderingContext | back to summary |
|---|---|
| public RenderingContext(ApplicationContext applicationContext, Locale locale, Function<String, String> templateLoader, String url) Create a new | |
| getApplicationContext | back to summary |
|---|---|
| public ApplicationContext getApplicationContext() Return the application context. | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Return the locale of the rendered template. | |
| getTemplateLoader | back to summary |
|---|---|
| public Function Return a function that takes a template path as input and returns the template content as a String. | |
| getUrl | back to summary |
|---|---|
| public String getUrl() Return the URL of the rendered template. | |