diff --git a/lib/protodoc.rb b/lib/protodoc.rb index 31311b0..8695707 100644 --- a/lib/protodoc.rb +++ b/lib/protodoc.rb @@ -21,6 +21,7 @@ module Protodoc include Environment def initialize(filename) + filename = File.join(filename.split('/')) @filename = File.expand_path(filename) @template = ERB.new(IO.read(@filename), nil, '%') end diff --git a/src/ajax.js b/src/ajax/ajax.js similarity index 100% rename from src/ajax.js rename to src/ajax/ajax.js diff --git a/src/dom.js b/src/dom/dom.js similarity index 100% rename from src/dom.js rename to src/dom/dom.js diff --git a/src/event.js b/src/dom/event.js similarity index 100% rename from src/event.js rename to src/dom/event.js diff --git a/src/form.js b/src/dom/form.js similarity index 100% rename from src/form.js rename to src/dom/form.js diff --git a/src/selector.js b/src/dom/selector.js similarity index 100% rename from src/selector.js rename to src/dom/selector.js diff --git a/src/array.js b/src/lang/array.js similarity index 100% rename from src/array.js rename to src/lang/array.js diff --git a/src/class.js b/src/lang/class.js similarity index 100% rename from src/class.js rename to src/lang/class.js diff --git a/src/date.js b/src/lang/date.js similarity index 100% rename from src/date.js rename to src/lang/date.js diff --git a/src/enumerable.js b/src/lang/enumerable.js similarity index 100% rename from src/enumerable.js rename to src/lang/enumerable.js diff --git a/src/function.js b/src/lang/function.js similarity index 100% rename from src/function.js rename to src/lang/function.js diff --git a/src/hash.js b/src/lang/hash.js similarity index 100% rename from src/hash.js rename to src/lang/hash.js diff --git a/src/number.js b/src/lang/number.js similarity index 100% rename from src/number.js rename to src/lang/number.js diff --git a/src/object.js b/src/lang/object.js similarity index 100% rename from src/object.js rename to src/lang/object.js diff --git a/src/periodical_executer.js b/src/lang/periodical_executer.js similarity index 100% rename from src/periodical_executer.js rename to src/lang/periodical_executer.js diff --git a/src/range.js b/src/lang/range.js similarity index 100% rename from src/range.js rename to src/lang/range.js diff --git a/src/regexp.js b/src/lang/regexp.js similarity index 100% rename from src/regexp.js rename to src/lang/regexp.js diff --git a/src/string.js b/src/lang/string.js similarity index 100% rename from src/string.js rename to src/lang/string.js diff --git a/src/template.js b/src/lang/template.js similarity index 100% rename from src/template.js rename to src/lang/template.js