Class RenderTemplateAction
java.lang.Object
com.kingsrook.qqq.backend.core.actions.AbstractQActionFunction<RenderTemplateInput,RenderTemplateOutput>
com.kingsrook.qqq.backend.core.actions.templates.RenderTemplateAction
public class RenderTemplateAction
extends AbstractQActionFunction<RenderTemplateInput,RenderTemplateOutput>
Basic action to render a template!
hard-coded built to only assume Velocity right now. could expand (and refactor) in future.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(RenderTemplateInput input) static String
Convenient static wrapper to render a template of an arbitrary type (language).static String
renderVelocity
(AbstractActionInput parentActionInput, Map<String, Object> context, String code) Deprecated.static String
renderVelocity
(Map<String, Object> context, String code) Most convenient static wrapper to render a Velocity template.Methods inherited from class com.kingsrook.qqq.backend.core.actions.AbstractQActionFunction
executeAsync
-
Constructor Details
-
RenderTemplateAction
public RenderTemplateAction()
-
-
Method Details
-
execute
- Specified by:
execute
in classAbstractQActionFunction<RenderTemplateInput,
RenderTemplateOutput> - Throws:
QException
-
renderVelocity
@Deprecated(since="Call the version that doesn't take an ActionInput") public static String renderVelocity(AbstractActionInput parentActionInput, Map<String, Object> context, String code) throws QExceptionDeprecated.Static wrapper to render a Velocity template.- Throws:
QException
-
renderVelocity
Most convenient static wrapper to render a Velocity template.- Throws:
QException
-
render
public static String render(TemplateType templateType, Map<String, Object> context, String code) throws QExceptionConvenient static wrapper to render a template of an arbitrary type (language).- Throws:
QException
-