Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
The following script is used in a method of a Userview Theme plugin
Code Block | ||
---|---|---|
| ||
import java.util.Map;
import java.util.HashMap;
import org.joget.apps.userview.service.UserviewUtil;
//following script is used in a method of userview theme
Map data = new HashMap();
data.put("theme", this);
data.put("message", "hello world!!");
String html = UserviewUtil.getTemplate(this, data, "/templates/userview/test.ftl"); |
public static java.lang.String getTemplate(org.joget.apps.userview.model.UserviewTheme theme, java.util.Map data, java.lang.String templatePath)
Method used to retrieve HTML template of an userview theme
public static java.lang.String getTemplate(org.joget.apps.userview.model.UserviewTheme theme, java.util.Map data, java.lang.String templatePath, java.lang.String translationPath)
Method used to retrieve HTML template of an userview theme with i18n supported
public static java.lang.String getUserviewMenuHtml(org.joget.apps.userview.model.UserviewMenu menu) throws java.lang.RuntimeException
Method used to retrieve HTML template of an userview menu
public static java.lang.String renderJspAsString(java.lang.String viewName, java.util.Map<java.lang.String, java.lang.Object> modelMap)
Method used to convert a jsp page as HTML template