rubyworks / smeagol

Read-Only Gollum Server
http://rubyworks.github.com/smeagol
Other
92 stars 5 forks source link

Trying to understand static generation #39

Closed trans closed 12 years ago

trans commented 13 years ago

I'm confused by this code:

https://github.com/benbjohnson/smeagol/blob/master/bin/smeagol-static#L55 https://github.com/benbjohnson/smeagol/blob/master/bin/smeagol-static#L62

I don't understand how it can possibly work. It seems to say that every valid wiki page overwrites index.html. That can't be right. What am I missing?

trans commented 12 years ago

Okay, I figured this out. The trick is that it pushes a new directory onto a stack each times, so index.html is not the same file.