class Syntropy::Router
def path_clean(rel_path, kind)
def path_clean(rel_path, kind) if (m = rel_path.match(INDEX_RE)) return m[1] end case kind when :static rel_path when :markdown rel_path.gsub(MD_EXT_RE, '') when :module rel_path.gsub(RB_EXT_RE, '') end end