Creating a Haml- and Sass-based template
Now that we have the content defined for our pages, we will start building the frontend. We will keep the frontend as simple as possible and just render the information we have created using our CMS. This task deals with the creation of the frontend and how to separate it from the backend.
Let's get started with the process of frontend creation:
- Inside your
app/assetsfolder, create a file called
front.css. In Rails we have an advantage of asset pipeline. We can use this to separate the frontend assets. We will create a manifest file called
front.cssand define front end-related stylesheets under it:
app/assets/stylesheets/front.css /* * This is a manifest file that'll be compiled into front.css, ...