winton / stasis

Static sites made powerful
http://stasis.me
MIT License
677 stars 56 forks source link

[DOC] Explicitly require two part extension #12

Closed krainboltgreene closed 13 years ago

krainboltgreene commented 13 years ago

Place emphasis on the website about the explicit requirement of two part extensions.

winton commented 13 years ago

All the examples use two part extensions, and it seems natural that the user will figure out what is going on if they don't add one.

garethrees commented 12 years ago

What is the technical reason for requiring a two part extension?

It looks like the main reason is to choose the output extension:

      ext =
        Tilt.mappings.keys.detect do |ext|
          File.extname(@path)[1..-1] == ext
        end

Since we're rendering static websites, won't the extension always be .html?

I don't expect a change to the operation of Stasis, but I'm looking at doing something similar using tilt so wanted to know your reasoning behind the two part extensions.

Many thanks.