Before you can start making templates in Skyline it's important to understand how templates work and where they are located. After you've read this brief introduction you're ready to have a go at either creating a page template or a section template.
Introduction to templating
Folder structure
Templates are located in /app/templates
Each template is nested per module namespace as shown bellow.
Root
|-app
|-templates
|-page
|-default
|-sections
|-link_section
|-default
|-sidebar
The name of the template is defined by the folder name in the module namespace. So in the example shown above a link_section has 2 templates (default and sidebar).
- Attention!
-
The Skyline namespace is ommited in the module namespace.
index
After you've created the correct folder structure for your template you can create index.html.erb in the folder. This file will then be rendered when you select the template for your module.
