locomotivecms / steam

The rendering stack used by both Wagon and Station (new name of the engine). It includes the rack stack and the liquid drops/filters/tags.
MIT License
38 stars 59 forks source link

Option to use sections without extra wrapping element #156

Closed dotsi closed 5 years ago

dotsi commented 5 years ago

Sections are the only part of Locomotivecms that outputs code that is not provided and controlled by the developer. Sections should be coded like blocks and use {{ section.locomotive_attributes }} in the wrapping element. For backwards compatibility the presence of {{ section.locomotive_attributes }} in the section template can be used to determine if a wrapper needs to be added or not. This could also help avoid issues when developers forget to add it.

did commented 5 years ago