Nice little word count

This commit is contained in:
Chris Van Pelt
2008-11-23 23:38:43 -08:00
parent 2118b55045
commit 111f76b2fd

View File

@@ -12,6 +12,10 @@ module Jekyll
def xml_escape(input)
input.gsub("<", "&lt;").gsub(">", "&gt;")
end
def number_of_words(input)
input.split.length
end
end
end