CarterA / Tribo

Extremely fast static site generator written in Objective-C
http://cartera.me/2011/10/16/made-on-a-mac/
Other
42 stars 6 forks source link

index.mustache #25

Closed sgoodwin closed 12 years ago

sgoodwin commented 12 years ago

In the Sources folder, there's an index.mustache file. Why is this randomly dangling? It appears to be the mustache file used to generate the main page, but then what is Default.mustache for?

CarterA commented 12 years ago

Index.mustache is converted to index.html by placing its contents inside Default.mustache. You don't have to have your site's index page be a list of posts: that's why you can edit the index file.

Default, on the other hand, is wrapped around the content of every single HTML page that is generated. It is for headers and footers and whatnot that need to be constant.

sgoodwin commented 12 years ago

Ohhh ok.