Skip to content

Rails plugin to use dashes instead of underscores when using XML Builder.

License

Notifications You must be signed in to change notification settings

jonphillips/dasherizing_builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DasherizingBuilder
==================

Uses dashes instead of underscores when building XML.
 - useful if you want to use ActiveRecord's to_xml as well.
 - useful when you have a library which uses the dasherized convention to parse your XML.

This is a plugin because Rails won't load it in production as a library...
and since I use it in multiple projects now, it's much easier!

Original source code is by Adam Pearson!
http://blog.martiandesigns.com/2008/10/29/dasherizing-builderxmlmarkup-in-rails/

I just made it a plugin.

Enjoy :)


Example
=======

Just use a view file using .xml.api instead of .builder


Copyright (c) 2009 Damien Le Berrigaud, released under the MIT license

About

Rails plugin to use dashes instead of underscores when using XML Builder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors