You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
349 B
16 lines
349 B
module Jekyll
|
|
module APIURLFilter
|
|
def api_url(input)
|
|
fullName = input.downcase
|
|
|
|
if fullName == "tinymce"
|
|
"tinymce/root_tinymce"
|
|
else
|
|
namespace = fullName.gsub(/\.[^.]+$/, "")
|
|
namespace + "/" + fullName if !input.nil?
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Liquid::Template.register_filter(Jekyll::APIURLFilter)
|