A massimo project looks something like this, though each directory's path can be customized.
my-site/
config.rb
config.ru
helpers/
javascripts/
main.js
lib/
pages/
index.html.erb
public/
stylesheets/
main.css.scss
views/
layouts/
main.html.erb
config.rb | The project's config file |
---|---|
config.ru | A rackup file for running the massimo server using your handler of choice |
helpers | This is where you put helper modules (like Rails). This modules will automatically be available in your pages and views. |
javascripts | This is where you put the working copies of your javascripts. They will be concatenated, minified, and moved to your output directory when the site is processed. |
lib | This is where you put additional libraries. This is where you would add additional Tilt Templates. |
pages | These are the actual pages (content) of your site. Anything here that is registered by a Tilt Template will be transformed into HTML and moved to the appropriate place in the output directory. |
public | By default, this is where your site will be built. |
stylesheets | This is where you put the working copies of your stylesheets. If they are Sass or Less documents, they will be transformed into CSS documents then moved to your output directory. |
views | This is where you put partials and layouts (like Rails). You can render partials from your pages by calling render('partial_name') . |