module PM
    module Template
        class Erb < Template

            def make
                File.open(@name, 'w') do |f|
                    template = File.open(@children[0], 'rb') { |file| file.read }
                    parser = ERB.new(template, 0, "$<>")
                    f << parser.result(@children[1])
                end
            end
            
        end
    end
end


