form

Generate an HTML <form> tag along with the necessary <input> tags for submitting data to a specified interface logic.

Because there are various form types in the Shopline theme, the form helper requires a type. Depending on the different form types, an additional parameter is needed. You can specify the following form types:

Params

  • form_type {String} The form type name.
  • content {String} The form contents.
  • hash {Object} form html attributes,optional
  • returns {String} html

Usage

{{#form 'form_type'}}
content
{{/form}}
Was this article helpful to you?