Class DirectEditSectionHandlebarsHelper
- java.lang.Object
-
- com.terminalfour.publish.handlebars.helper.BaseHelper
-
- com.terminalfour.publish.handlebars.helper.edit.DirectEditSectionHandlebarsHelper
-
- All Implemented Interfaces:
com.github.jknack.handlebars.Helper<Object>
@Component public class DirectEditSectionHandlebarsHelper extends BaseHelper
The {{directEditSection}} handlebars helper outputs a URL to allow an end-user to open Direct Edit for the Section that is being published.Usage
<a href="{{directEditSection}}">Direct edit this section</a>The directEditSection handlebars expression is a simple expression that outputs the URL required to open Direct Edit for the Section that is being published.
As can be seen in the example above, the web developer is responsible for utilizing this URL within a link.
-
-
Constructor Summary
Constructors Constructor Description DirectEditSectionHandlebarsHelper(IPageAPI pageApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(Object context, com.github.jknack.handlebars.Options options)Theapplymethod is the main entry point for handlebars.java helpers.
-
-
-
Constructor Detail
-
DirectEditSectionHandlebarsHelper
@Autowired public DirectEditSectionHandlebarsHelper(IPageAPI pageApi)
-
-
Method Detail
-
apply
public String apply(Object context, com.github.jknack.handlebars.Options options)
Description copied from class:BaseHelperTheapplymethod is the main entry point for handlebars.java helpers.It is called internally by the handlebars.java engine when a matching handlebars.java expression is encountered.
- Specified by:
applyin interfacecom.github.jknack.handlebars.Helper<Object>- Specified by:
applyin classBaseHelper- Parameters:
context- The currently executing context.options- The options.- Returns:
- The generated output.
-
-