-def render_subscription_file(locals)
- ERB.new(SUBSCRIPTION_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding })
+def render_member_file(locals)
+ ERB.new(MEMBER_FILE_TEMPLATE).result(OpenStruct.new(locals).instance_eval { binding })
+end
+
+def new_id
+ max_id = Dir.glob("#{current_dir}/Membres/*.mdwn").
+ collect { |f| File.basename(f).gsub(/\.mdwn$/, '').to_i }.max || 0
+ max_id + 1