An open API service indexing awesome lists of open source software.

https://github.com/devinus/jorge

A simple Erlang DSL for generating XML based on tuples of tuples
https://github.com/devinus/jorge

Last synced: about 1 year ago
JSON representation

A simple Erlang DSL for generating XML based on tuples of tuples

Awesome Lists containing this project

README

          

# Jorge

Jorge (pronounced HOR-HAY) is a simple Erlang DSL for generating XML based on
tuples of tuples.

## Example

```erl-sh
1> Foo = {foo, [{grault, garply}, {waldo, fred}],
1> {bar, [
1> {baz, 2},
1> {quux, corge},
1> {plugh, 5.0},
1> {xyzzy, <<"thud">>},
1> {spam, fun() -> eggs end}
1> ]}
1> }.
{foo,[{grault,garply},{waldo,fred}],
{bar,[{baz,2},
{quux,corge},
{plugh,5.0},
{xyzzy,<<"thud">>},
{spam,#Fun}]}}
2> jorge:jorge(Foo).
[<<"">>,
[<<"">>,
[[<<"">>,<<"2">>,<<"">>],
[<<"">>,<<"corge">>,<<"">>],
[<<"">>,<<"5.0">>,<<"">>],
[<<"">>,<<"thud">>,<<"">>],
[<<"">>,<<"eggs">>,<<"">>]],
<<"">>],
<<"">>]
```