Closed krainboltgreene closed 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.
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.
Place emphasis on the website about the explicit requirement of two part extensions.