crafty
crafty copied to clipboard
Changed behaviour of empty arrays and hashes as content
Hi!
I ran in to the problem that the following:
ul do
articles.each do |article|
li article.title
end
end
would result in:
- []
if articles was empty. Therefore I added a check so if the content has the method empty? and the method is true, it is represented as an empty string.
I also changed the Rakefile some, since it produced an error in the way it was written.
Best regards, Johannes Edelstam