mostlystatic/mostlystatic — Issue #16: Is there a better way to determine if a file is top-level (e.g. html)?
Author: mostlystatic
Created: 2012-02-27 11:20:17+00:00
State: open
Labels: maybe

E.g. /2/main.less should not be redirected even though /main.less is the default url.
Currently this is achieved by `extension in TOP_LEVEL_FILE_EXTENSIONS`, but maybe this can be done more elegantly? Is there a way to find out whether main.less is used for inclusion in html or whether it viewed on its own?