added ns logic to api_url
This commit is contained in:
+8
-1
@@ -1,7 +1,14 @@
|
||||
module Jekyll
|
||||
module APIURLFilter
|
||||
def api_url(input)
|
||||
input.downcase if !input.nil?
|
||||
fullName = input.downcase
|
||||
|
||||
if fullName == "tinymce"
|
||||
"tinymce/root_tinymce"
|
||||
else
|
||||
namespace = fullName.gsub(/\.[^.]+$/, "")
|
||||
namespace + "/" + fullName if !input.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user