wagon generate section name_of_the_section
Name of the section
A string consisting of lowercase letters and underscores (no spaces).
During the section setup process you will be asked a few questions. Finally, Wagon will generate a section with some example code to get you started.
All the sections are located under the
app/views/sections folder of your Wagon site.
A section is composed of two essential elements:
- a YAML definition (JSON is also accepted)
- a Liquid template
All packaged inside a liquid file like this :
--- YAML or JSON Definition --- Liquid Template
Updated about 1 year ago