Package io.mangoo.templating
Class TemplateContext
- java.lang.Object
-
- io.mangoo.templating.TemplateContext
-
public class TemplateContext extends Object
- Author:
- svenkubiak
-
-
Constructor Summary
Constructors Constructor Description TemplateContext()TemplateContext(Map<String,Object> content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateContextaddContent(String name, Object object)Map<String,Object>getContent()StringgetTemplatePath()TemplateContextwithAuthenticity(Session session)TemplateContextwithAuthenticityForm(Session session)TemplateContextwithController(String controller)TemplateContextwithFlash(Flash flash)TemplateContextwithForm(Form form)TemplateContextwithMessages(Messages messages)TemplateContextwithPrettyTime(Locale locale)TemplateContextwithSession(Session session)TemplateContextwithTemplatePath(String path)
-
-
-
Method Detail
-
withForm
public TemplateContext withForm(Form form)
-
withFlash
public TemplateContext withFlash(Flash flash)
-
withSession
public TemplateContext withSession(Session session)
-
withMessages
public TemplateContext withMessages(Messages messages)
-
withController
public TemplateContext withController(String controller)
-
withPrettyTime
public TemplateContext withPrettyTime(Locale locale)
-
withAuthenticity
public TemplateContext withAuthenticity(Session session)
-
withAuthenticityForm
public TemplateContext withAuthenticityForm(Session session)
-
withTemplatePath
public TemplateContext withTemplatePath(String path)
-
addContent
public TemplateContext addContent(String name, Object object)
-
getTemplatePath
public String getTemplatePath()
-
-