24 fév. 10:57
Convertir ses fichiers erb en haml rapidement
Un petit script bien pratique pour les fans d’haml.
class ToHaml
def initialize(path)
@path = path
end
end
path = File.join(File.dirname(FILE), ‘app’, ‘views’)
ToHaml.new(path).convert!
A placer dans un fichier à la racine du projet pour l’executer.